Closed FernandezEnrique closed 1 month ago
Search issues BEFORE posting.
Duplicate #1710
I had already checked it but all answers are about playServicesLocationVersion in bluild.gradle and can't find a solution for me
I am sending build.gradle and app/build.gradle
Then one of your other plug-ins is at fault.
analyze your dependencies to find out which one is importing play-services-location < v21
$ cd android
$ ./gradlew app:dependencies
Btw (unrelated): why are you defining the maven url for background-fetch twice?
Thank you for answering so quickly.
I just copied it from another issue by mistake, deleting that is still the same error.
Result of running ./gradlew app:dependencies | grep play-services-location
$ ./gradlew app:dependencies | grep play-services-location
+--- com.google.android.gms:play-services-location:21.0.1
+--- com.google.android.gms:play-services-location:21.0.1
+--- com.google.android.gms:play-services-location:{strictly 21.0.1} -> 21.0.1 (c)
+--- com.google.android.gms:play-services-location:21.0.1
| +--- com.google.android.gms:play-services-location:20.0.0 -> 21.0.1 (*)
| +--- com.google.android.gms:play-services-location:21.0.1 (*)
+--- com.google.android.gms:play-services-location:21.0.1
+--- com.google.android.gms:play-services-location:{strictly 21.0.1} -> 21.0.1 (c)
+--- com.google.android.gms:play-services-location:21.0.1
| +--- com.google.android.gms:play-services-location:20.0.0 -> 21.0.1 (*)
| +--- com.google.android.gms:play-services-location:21.0.1 (*)
+--- com.google.android.gms:play-services-location:21.0.1 (n)
+--- com.google.android.gms:play-services-location:21.0.1
+--- com.google.android.gms:play-services-location:21.0.1
+--- com.google.android.gms:play-services-location:{strictly 21.0.1} -> 21.0.1 (c)
+--- com.google.android.gms:play-services-location:21.0.1
| +--- com.google.android.gms:play-services-location:20.0.0 -> 21.0.1 (*)
| +--- com.google.android.gms:play-services-location:21.0.1 (*)
+--- com.google.android.gms:play-services-location:21.0.1
+--- com.google.android.gms:play-services-location:{strictly 21.0.1} -> 21.0.1 (c)
+--- com.google.android.gms:play-services-location:21.0.1
| +--- com.google.android.gms:play-services-location:20.0.0 -> 21.0.1 (*)
| +--- com.google.android.gms:play-services-location:21.0.1 (*)
Now analyze it yourself to determine which of your other plug-ins is importing v20.
The plug-in is not at-fault here.
The only plug-in that is trying to import v20 is react-native-background-geolocation
Or am I wrong?
This result appears 4 times.
+--- project :react-native-background-geolocation
| +--- com.transistorsoft:tslocationmanager:+ -> 3.5.4
| +--- com.facebook.react:react-native:+ -> com.facebook.react:react-android:0.73.3 (*)
| +--- androidx.appcompat:appcompat:1.4.2 -> 1.6.1 (*)
| +--- com.google.android.gms:play-services-location:20.0.0 -> 21.0.1 (*)
The current version of react-native-background-geolocation
is 4.15.1
Go back to the Android Setup Instructions and carefully compare what you have in your gradle file:
googlePlayServicesVersion
Compared to what the Setup Instructions directed you to do.
Just have done this again from scratch exactly as it but still the same error.
Do you need me to send gradle files again or anything else?
Do you need me to send gradle files again or anything
Yes.
googlePlayServicesVersion = "21.0.1"
Congratulations, you made the same mistake twice.
I want you to look at what you entered into your gradle file and read each word out loud to yourself.
googlePlayServicesVersion
"google"
"play"
"services"
"version"
Now read out loud what the Setup Instructions direct you to add:
Use "copy/paste" and don't trust your own brain and fingers.
Oh my god, you are right, it's pretty late here (2 am)
Thank you and sorry for the inconvenience.
Your Environment
react-native -v
): 0.73.3Expected Behavior
Run without any error
Actual Behavior
Crashes without any error
Steps to Reproduce
1. 2. 3. 4.
Context
I am trying to install this plugin but it crashes
Debug logs
Logs
``` 03-18 00:01:55.787 9398 9499 E HMSSDK_HMSPackageManager: PackagePriorityInfo list is null 03-18 00:01:55.790 9398 9499 E HMSSDK_HMSPackageManager: