同步失败 - 找不到com.google.android.gms:play-services:9.4.0

时间:2016-09-15 02:52:11

标签: android google-play-services

我试图运行一个在别人的PC上生成的项目,但是同步失败了,我在清理项目时遇到了这个错误:

  Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find com.google.android.gms:play-services:9.4.0.
     Searched in the following locations:
         https://jcenter.bintray.com/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.pom
         https://jcenter.bintray.com/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.jar
         file:/C:/Users/win7/AppData/Local/Android/sdk1/extras/android/m2repository/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.pom
         file:/C:/Users/win7/AppData/Local/Android/sdk1/extras/android/m2repository/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.jar
         file:/C:/Users/win7/AppData/Local/Android/sdk1/extras/google/m2repository/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.pom
         file:/C:/Users/win7/AppData/Local/Android/sdk1/extras/google/m2repository/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.jar
     Required by:
         Map:app:unspecified

1 个答案:

答案 0 :(得分:0)

  

是在我的其他人的PC上生成的

他们可能安装了SDK存储库,但您没有。

好像您错过了Google Play服务存储库。

g play services