應用插件: 'com.android.application' 應用插件: 'com.neenbedankt.android-容易'IGOT這個錯誤包com.google.firebase.messaging不存在
依賴{ 編譯「COM .google.firebase:火力的廣告:9.2.1'
} 的Android { compileSdkVersion 24 buildToolsVersion 「24.0.3」 defaultConfig { 的applicationID 「com.code.zero.drivermechanicsapp」 的minSdkVersion 15 targetSdkV版爲24 的versionCode 1 的versionName 「1.0」 testInstrumentationRunner 「android.support.test.runner.AndroidJUnitRunner」 } buildTypes { 釋放{ minifyEnabled假 proguardFiles getDefaultProguardFile( 'proguard的-android.txt'),「proguard- rules.pro」 }}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta5'
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:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta5'
compile 'com.android.support:support-v4:25.2.0'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.google.android.gms:play-services-maps:9.2.0'
compile 'com.jakewharton:butterknife:8.1.0'
compile 'com.google.firebase:firebase-database:9.2.0'
compile 'com.github.Mariovc:ImagePicker:1.0.5'
//compile 'com.google.firebase:firebase-storage:9.2.0'
//compile 'com.google.firebase:firebase-auth:9.2.0'
compile 'com.squareup.picasso:picasso:2.5.2'
testCompile 'junit:junit:4.12'
apt 'com.jakewharton:butterknife-compiler:8.1.0'
}
}
應用插件: 「com.google.gms.google服務」
和我得到這個錯誤,因爲我檢查了build.gradle,並且我已經更新了sdk工具上的google-services –
錯誤:執行任務':app:processDebugGoogleServices'失敗。 >請修正版本衝突,方法是更新google-services插件的版本(有關最新版本的信息,請訪問https://bintray.com/android/android-tools/com.google.gms.google-services /)或將com.google.android.gms的版本更新爲9.0.0。 –
您是否嘗試了錯誤消息中的建議? –