Open xempie opened 5 years ago
This works for me:
Add the following two flags to true in your gradle.properties
file at ProjectFolder/android/gradle.properties
android.useAndroidX=true
android.enableJetifier=true
Execute
npm install --save-dev jetifier
npx jetify
npx react-native run-android
In your package.json add the following to scripts
"postinstall" : "npx jetify"
Extra: At ProjectFolder/android
delete .idea
folder in case that cache it's causing a trouble.
Original Solution Source: At Pavan Garre response: https://stackoverflow.com/questions/40380519/error-package-com-android-annotations-does-not-exist
For versions ReactNative < 0.60.0, please use react-native-android-location-enabler@1.1.0
I recently updated react native and RN android location enabler but I get this error when I run the project:
=========================================
FAILURE: Build failed with an exception.
"react": "^16.10.1", "react-native": "0.57.8", "react-native-android-location-enabler": "^1.2.0",
Anyone knows how to fix it?