react-native-geolocation icon indicating copy to clipboard operation
react-native-geolocation copied to clipboard

android building error

Open liuqing520it opened this issue 5 years ago • 1 comments

ERROR: Unable to resolve dependency for ':app@compileOptions/compileClasspath': Could not resolve project :@react-native-community_geolocation. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':app@compileOptionsUnitTest/compileClasspath': Could not resolve project :@react-native-community_geolocation. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':app@lintOptions/compileClasspath': Could not resolve project :@react-native-community_geolocation. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':app@lintOptionsUnitTest/compileClasspath': Could not resolve project :@react-native-community_geolocation. Show Details Affected Modules: app

I need help, How can I do about this error

liuqing520it avatar Nov 22 '19 09:11 liuqing520it

I'm not sure if your build error was caused by the same thing as mine because I had a build error in IOS. For me installing with yarn created a build error, but installing with npm was ok. Here's what worked for me. Maybe you can modify this for android

  1. yarn remove @react-native-community/geolocation
  2. cd ios
  3. pod deintegrate
  4. navigate back to the project with ../
  5. npm install @react-native-community/geolocation --save
  6. cd ios
  7. pod install
  8. watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
  9. close terminal windows with this and metro bundler and anything else related to react native
  10. open a new window and react-native run-ios

annieneedscoffee avatar Dec 04 '19 06:12 annieneedscoffee