Could not find com.google.android.gms:play-services-analytics:8.1.0

南楼画角 提交于 2019-12-19 05:19:44

问题


Attempting to compile and debug the Android application I am working on resulted in the following errors:

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_prodDebugStagingCompile'.
   > Could not find com.google.android.gms:play-services-analytics:8.1.0.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/google/android/gms/play-services-analytics/8.1.0/play-services-analytics-8.1.0.pom
         https://repo1.maven.org/maven2/com/google/android/gms/play-services-analytics/8.1.0/play-services-analytics-8.1.0.jar
         https://jcenter.bintray.com/com/google/android/gms/play-services-analytics/8.1.0/play-services-analytics-8.1.0.pom
         https://jcenter.bintray.com/com/google/android/gms/play-services-analytics/8.1.0/play-services-analytics-8.1.0.jar
 ...

Are these sources down or expired?


回答1:


Open the Android Studio SDK manager, make sure all of your build tools are up to date. Then make sure your Google Play Services and Google Repository packages are up to date. In the Android Studio sdk manager, you'll find these under the "SDK Tools" tab. If you are using the standalone sdk manager, you would scroll down to the "Extras" section at the bottom and update them there.



来源:https://stackoverflow.com/questions/32909421/could-not-find-com-google-android-gmsplay-services-analytics8-1-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!