Richou / react-native-android-location-enabler

Display a GoogleMap like android popup to ask for user to enable location services if disabled
MIT License
209 stars 52 forks source link

when i run react-native run-android i am facing issue #25

Open ravichandra90 opened 5 years ago

ravichandra90 commented 5 years ago

Task :react-native-android-location-enabler:compileReleaseJavaWithJavac FAILED /home/ravi/workspace/React_native/astroBuild/astro/node_modules/react-native-android-location-enabler/android/src/main/java/com/heanoria/library/reactnative/locationenabler/RNAndroidLocationEnablerModule.java:8: error: cannot find symbol import androidx.annotation.NonNull; ^ symbol: class NonNull location: package androidx.annotation /home/ravi/workspace/React_native/astroBuild/astro/node_modules/react-native-android-location-enabler/android/src/main/java/com/heanoria/library/reactnative/locationenabler/RNAndroidLocationEnablerModule.java:98: error: cannot find symbol public void onComplete(@NonNull Task task) { ^ symbol: class NonNull location: class RNAndroidLocationEnablerModule 2 errors

Richou commented 5 years ago

Hello, Which version do you use ? This issue should has been resolved with v1.2.0

ravichandra90 commented 5 years ago

I am using react-native-location-enabler v1.2.0 and my react native verison is v0.55.3. still im facing issue

Richou commented 5 years ago

If you are using react native < 0.60.x, please use v1.1.0.

rensamatar commented 5 years ago

Hi, I am using react-native 0.55.2 react-native-location-enabler 1.1.0 Gradle version 3.4.2 and still got the same error.

podvipodvert commented 5 years ago

any updates on this?