![](/img/trans.png)
[英]while running an android application, i am getting the following error in console
[英]I am getting following error while building gradle
錯誤:任務':app:processDebugGoogleServices'的執行失敗。
請通過更新google-services插件的版本來解決版本沖突(有關最新版本的信息, 請訪問https://bintray.com/android/android-tools/com.google.gms.google-services/ )或將com.google.android.gms的版本更新為11.8.0。
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "in.lmcgroup.lmcgroup"
minSdkVersion 16
targetSdkVersion 27
multiDexEnabled true
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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:25.3.1'
testCompile 'junit:junit:4.12'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:25.3.1'
compile 'com.google.firebase:firebase-core:11.8.0'
compile 'com.google.firebase:firebase-auth:11.8.0'
compile 'com.google.firebase:firebase-database:11.8.0'
compile 'com.google.firebase:firebase-admin:5.7.0'
compile 'com.firebaseui:firebase-ui-auth:3.1.0'
compile 'com.android.support:support-v4:26.+'
}
apply plugin: 'com.google.gms.google-services'
您是否在應用gradle中添加了classpath?
classpath 'com.google.gms:google-services:3.0.0'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.