0

這是我的build.gradle代碼 錯誤:執行失敗,對於任務':app:processDebugGoogleServices'。我在android studio上得到googleservices錯誤

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 9.0.0.

我的build.gradle代碼

apply plugin: 'com.google.gms.google-services' 
apply plugin: 'com.android.application' 
android { 
compileSdkVersion 24 
buildToolsVersion "24.0.1" 
defaultConfig { 
    applicationId "com.example.pandey.nidhiiot" 
    minSdkVersion 16 
    targetSdkVersion 24 
    versionCode 1 
    versionName "1.0" 
    multiDexEnabled true 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 

和我的依賴性是 編譯 'com.google.android.gms:發揮服務:10.0.1'

+2

顯示'build.gradle'文件中的所有內容 – TruongHieu

回答

0

嘗試把apply plugin: 'com.google.gms.google-services'在你的app.gradle文件的結尾,而不是開頭

相關問題