react-native-geolocation
react-native-geolocation copied to clipboard
android building error
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
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
- yarn remove @react-native-community/geolocation
- cd ios
- pod deintegrate
- navigate back to the project with ../
- npm install @react-native-community/geolocation --save
- cd ios
- pod install
- watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
- close terminal windows with this and metro bundler and anything else related to react native
- open a new window and react-native run-ios