【发布时间】:2015-11-26 01:22:14
【问题描述】:
我正在开发一个依赖于 Google Play 服务 8.1.0 的项目,并尝试更新到 8.3.0,详情如下:Setting Up Google Play Services
在同步我的 gradle 脚本并尝试构建后,我无法再解决来自 Google Play 服务的任何问题。这是我的构建脚本中的简单数字增量:
dependencies {
//google play services components
def playServicesVersion = '8.3.0'
compile "com.google.android.gms:play-services-base:${playServicesVersion}"
compile "com.google.android.gms:play-services-maps:${playServicesVersion}"
compile "com.google.android.gms:play-services-gcm:${playServicesVersion}"
...
当 playServicesVersion 的数字设置为“8.1.0”时,我的项目构建良好。当切换到“8.3.0”时 - Google Play 服务中的任何内容都没有得到解决,即无法找到所有这些以及更多内容:
import com.google.android.gms.auth.api.Auth;
import com.google.android.gms.auth.api.credentials.Credential;
import com.google.android.gms.auth.api.credentials.CredentialRequest;
等等。我觉得我必须忽略一些简单的事情。
【问题讨论】:
标签: android android-studio gradle google-play-services