我最近更新了我的 android studio,当我尝试同步我的 gradle 文件时,出现以下错误:
Could not find any version that matches com.google.gms:play-services:6.1.+
我知道 Android Studio 附带了它自己的 sdk,所以我安装了 ADT sdk 并将我的项目指向这个,但我仍然遇到同样的错误,这是我的 gradle 依赖项:
dependencies {
compile 'com.android.support:appcompat-v7:20.+'
compile 'com.path:android-priority-jobqueue:1.1.2'
compile files('libs/Parse-1.4.2.jar')
compile project(':ws_wrapper')
compile project(':custom_slider_library')
compile 'com.crashlytics.android:crashlytics:1.+'
compile 'com.google.android.gms:play-services:6.1.+'
compile project(':shinobicharts-android-library')
compile files('libs/shinobicharts-android-trial-1.3.5.jar')
compile files('libs/androidplot-core-0.6.1-SNAPSHOT.jar')
compile files('libs/activation.jar')
compile files('libs/additionnal.jar')
compile files('libs/mail.jar')
compile files('libs/universal-image-loader-1.9.2.jar')
compile files('libs/twitter4j-core-4.0.1.jar')
}
我不确定下一步该怎么做,我的 sdk 管理器是最新的,有人有什么想法吗?由于这个问题,我目前无法运行它。
如果我尝试通过项目结构添加依赖项,则 google play 服务在 maven 下拉列表中不可用。
只是在 list 中添加这一行 @integer/google_play_services_version
也会导致它说无法解析符号的问题
最佳答案
您的 SDK 实际上不是最新的。您需要安装 Google Repository 的第 12 版;那就是随附 Google Play 服务 6.1.11 的服务。
关于安卓工作室 : Could not find any version that matches com. google.gms :play-services:6. 1.+,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26297267/