错误:任务':app:processDebugGoogleServices'执行失败。在Android Studio中

时间:2016-02-17 13:28:34

标签: process google-cloud-messaging google-play-services

我在build.gradle中添加依赖项时遇到以下错误

Error:Execution failed for task ':app:processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 8.3.0.

我已将以下依赖项和插件添加到build.gradle(应用级别)以集成GCM 3: -

apply plugin: 'com.google.gms.google-services'
compile "com.google.android.gms:play-services:8.3.0"

build.gradle(顶级): -

classpath 'com.google.gms:google-services:1.5.0-beta2'

您的建议将不胜感激。

谢谢!

1 个答案:

答案 0 :(得分:1)

在google中进行调试和搜索后,我发现我在build.gradle中添加了两个不同版本的google play服务依赖项。

删除旧版本解决了这个问题

谢谢