Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.61k stars 292 forks source link

Error after updating to 5.2.0 #254

Closed CHNB128 closed 3 years ago

CHNB128 commented 3 years ago

While building android I get following error:

* What went wrong:
Could not determine the dependencies of task ':react-native-geolocation-service:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-geolocation-service:debugCompileClasspath'.
   > Could not find com.google.android.gms:play-services-location:16.1.0.
     Required by:
         project :react-native-geolocation-service

Environment:

"react": "16.13.1", "react-dom": "16.9.0", "react-native": "0.63.2", "react-native-geolocation-service": "^5.2.0",

❯ java -version 
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
❯ node --version
v14.15.1
❯ ./gradlew --version                                                       

------------------------------------------------------------
Gradle 6.3
------------------------------------------------------------

Build time:   2020-03-24 19:52:07 UTC
Revision:     bacd40b727b0130eeac8855ae3f9fd9a0b207c60

Kotlin:       1.3.70
Groovy:       2.5.10
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          1.8.0_282 (Oracle Corporation 25.282-b08)
OS:           Linux 5.11.1-arch1-1 amd64
Agontuk commented 3 years ago

Not an issue related to new version. Change your play service version from build.gradle file. Here's an example https://github.com/Agontuk/react-native-geolocation-service/blob/master/example/android/build.gradle#L11-L13