【发布时间】:2018-06-03 16:33:10
【问题描述】:
冲突在哪里,如何解决,以及在未来寻找冲突的根源?
- 出了什么问题:任务 ':app:processDebugGoogleServices' 执行失败。
请通过更新 google-services 插件的版本来修复版本冲突(有关最新版本的信息是 可在 https://bintray.com/android/android-tools/com.google.gms.google-services/) 或将 com.google.android.gms 的版本更新为 16.0.0。
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
minSdkVersion 17
targetSdkVersion 27
}
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.google.android.gms:play-services-analytics:16.0.0'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-places:15.0.1'
implementation 'com.google.maps.android:android-maps-utils:0.4.3'
implementation 'com.google.firebase:firebase-messaging:17.0.0'
implementation 'com.google.firebase:firebase-crash:16.0.0'
apply plugin: 'com.google.gms.google-services'
【问题讨论】:
-
你需要将你根 build.gradle 中的插件更新为
classpath 'com.google.gms:google-services:3.3.0' -
谢谢,我修改了它,现在当我同步或清理项目时它显示一个新错误:任务':app:processDebugResources'的执行失败。 > 处理资源失败,详情见上面的 aapt 输出。
标签: android android-gradle-plugin