首页 文章

版本冲突更新到播放服务9.4.0

提问于
浏览
-3
Receive   Error

错误:任务':applock:processDebugGoogleServices'的执行失败 .

请通过更新google-services插件的版本来修复版本冲突(有关最新版本的信息,请访问https://bintray.com/android/android-tools/com.google.gms.google-services/)或将com.google.android.gms的版本更新为9.4.0 .

In top level build gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {

        classpath 'com.android.tools.build:gradle:2.1.0'
        classpath 'com.google.gms:google-services:3.0.0'


    }
}

allprojects {
    repositories {
        jcenter()
        mavenLocal()
    }
}

In app level build gradle:

compile 'com.google.android.gms:play-services-auth:9.4.0'
compile 'com.google.android.gms:play-services-gcm:9.0.0'

compile 'com.google.firebase:firebase-database:9.4.0'


  I have also include
  apply plugin: 'com.google.gms.google-services'
in the end of the build gradle file.

2 回答

  • 0

    更改

    compile 'com.google.android.gms:play-services-gcm:9.0.0'

    compile 'com.google.android.gms:play-services-gcm:9.4.0'

  • 0

    [...]将com.google.android.gms的版本更新为9.4.0 .

    像那样?

    compile 'com.google.android.gms:play-services-gcm:9.4.0'
    

相关问题