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

Could invoke RNAndroidLocationEnabler. promptForEnabledLocationNeeded #29

Open Adibacaj opened 5 years ago

Adibacaj commented 5 years ago

Hello, I have installed react-native-location-enabler on RN 0.61.0-rc.3 and got this error when I am running on a real device:

Could invoke RNAndroidLocationEnabler. promptForEnabledLocationNeeded

null

Failed resolution of: Lcom/google/android/gs/location/LocationRequest;

com.google.android.gms.location.LocationRequest

Failed resolution of: Lcom/google/android/gms/internal/zzbgl

Didn't find class "com.google.android.gms.internal.zzbgl

anastely commented 4 years ago

Are you solve it?

pakAsrul commented 7 months ago

i'm solved this.

in folder android/build.gradle add lines : googlePlayServicesVersion = "21.0.1" in ext add lines : classpath('com.google.gms:google-services:4.3.3') in dependencies

nitin-kumar-bs commented 5 months ago

I am getting the same issue anyone can help us to fix this issue

issue :- java.lang.RuntimeException: Could not invoke RNAndroidLocationEnabler.promptForEnableLocationIfNeeded RN version => 0.73.8 react-native-android-location-enabler => 1.2.2