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

GooglePlayServicesMissingManifestValueException at getCurrentPosition()

Open ThucPT0812 opened this issue 1 year ago • 0 comments

The package is crashing when it call com.agontuk.RNFusedLocation.LocationUtils.isGooglePlayServicesAvailable() in android. Exception in native call com.google.android.gms.common.GooglePlayServicesMissingManifestValueException: A required meta-data tag in your app's AndroidManifest.xml does not exist. You must have the following declaration within the element: at com.google.android.gms.common.GooglePlayServicesUtilLight.isGooglePlayServicesAvailable(com.google.android.gms:play-services-basement@@18.1.0:8) at com.google.android.gms.common.GoogleApiAvailabilityLight.isGooglePlayServicesAvailable(com.google.android.gms:play-services-basement@@18.1.0:2) at com.google.android.gms.common.GoogleApiAvailability.isGooglePlayServicesAvailable(Unknown Source:94) at com.google.android.gms.common.GoogleApiAvailabilityLight.isGooglePlayServicesAvailable(com.google.android.gms:play-services-basement@@18.1.0:1) at com.google.android.gms.common.GoogleApiAvailability.isGooglePlayServicesAvailable(Unknown Source:93) at com.agontuk.RNFusedLocation.LocationUtils.isGooglePlayServicesAvailable(LocationUtils.java:47) at com.agontuk.RNFusedLocation.RNFusedLocationModule.createLocationProvider(RNFusedLocationModule.java:156) at com.agontuk.RNFusedLocation.RNFusedLocationModule.getCurrentPosition(RNFusedLocationModule.java:109) at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188) at com.facebook.jni.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27) at android.os.Looper.loop(Looper.java:223) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run What may be the cause? please help me.

ThucPT0812 avatar Mar 06 '24 00:03 ThucPT0812