首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >google-服务-使用通信一式一式的auth崩溃

google-服务-使用通信一式一式的auth崩溃
EN

Stack Overflow用户
提问于 2019-01-01 17:03:23
回答 1查看 196关注 0票数 2

我正在尝试将克族服务添加到我的安卓应用程序中。

但是,当我添加dependencies时,会发现一个错误,说明它与google-services-auth实现崩溃。

依赖性部分如下:

代码语言:javascript
复制
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
    implementation 'androidx.recyclerview:recyclerview:1.0.0-alpha1'
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.android.material:material:1.1.0-alpha02'
    implementation 'com.google.apis:google-api-services-blogger:v3-rev61-1.25.0'
    implementation 'com.github.bumptech.glide:glide:4.8.0'
    implementation 'io.kommunicate:kommunicate:1.6.3'
    implementation 'com.github.GrenderG:Toasty:1.3.1'
    implementation 'com.rom4ek:arcnavigationview:1.0.3'
    implementation 'com.github.Commit451:ModalBottomSheetDialogFragment:1.1.0'
    implementation 'com.android.volley:volley:1.1.1'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}

完整的log如下:

代码语言:javascript
复制
In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[15.0.1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.android.gms:play-services-stats:15.0.1 -> com.google.android.gms:play-services-basement@[15.0.1], but play-services-basement version was 16.0.1.

The following dependencies are project dependencies that are direct or have 
transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto io.kommunicate:kommunicate@1.6.3
-- Project 'app' depends onto com.google.android.gms:play-services-auth@16.0.1

For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your build.gradle file.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-01-11 15:54:06

我真傻!

play-services-auth15.0.1版本

代码语言:javascript
复制
implementation 'com.google.android.gms:play-services-auth:15.0.1'

但不是16.0.1

代码语言:javascript
复制
implementation 'com.google.android.gms:play-services-auth:16.0.1'
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53997322

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档