Android 拥有相同的渐变级别仍然会通过更新google服务插件的版本来修复版本冲突
我在gradle建筑时面临这个错误 错误:任务“:app:processDebugGoogleServices”的执行失败 请通过更新google services插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为9.0.0来修复版本冲突 尽管我所有的谷歌版本都是一样的 应用程序gradleAndroid 拥有相同的渐变级别仍然会通过更新google服务插件的版本来修复版本冲突,android,gradle,build.gradle,Android,Gradle,Build.gradle,我在gradle建筑时面临这个错误 错误:任务“:app:processDebugGoogleServices”的执行失败 请通过更新google services插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为9.0.0来修复版本冲突 尽管我所有的谷歌版本都是一样的 应用程序gradle apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-s
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.iviewlabs.mrmint"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',
{
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
testCompile 'junit:junit:4.12'
compile 'de.hdodenhof:circleimageview:2.2.0'
compile 'com.android.support:design:26.+'
compile 'com.android.support:cardview-v7:26.+'
compile 'com.android.support:support-v4:26.+'
compile 'com.google.android.gms:play-services-maps:11.0.4'
compile 'com.google.maps.android:android-maps-utils:0.5'
compile 'com.google.android.gms:play-services-location:11.0.4'
compile 'com.squareup.okhttp:okhttp:2.6.0'
compile 'com.google.code.gson:gson:2.8.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'id.zelory:compressor:2.1.0'
compile 'com.google.firebase:firebase-messaging:11.0.4'
}
而我的项目级gradle是
// Top-level build file where you can add configuration options common to
all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
请帮我找到解决方案我尝试过很多解决方案
apply plugin: 'com.google.gms.google-services'
dependencies {
}
apply plugin: 'com.google.gms.google-services'
您需要构建插件
3.0.1
来使用实现
,而不是编译
。拥有最新的播放服务库是不相关的。请从你的答案中删除这两点。唯一重要的是第一步。酷,我想更新整个答案…根据最新的更新,现在是fyn吗@尤金佩切内克