根據(jù)這個 SO線程,我知道存在版本沖突,但是在從Google獲得新版本后問題仍然存在。錯誤:任務(wù)':app:processDebugGoogleServices'的執(zhí)行失敗。請通過更新google-services插件的版本來解決版本沖突(有關(guān)最新版本的信息,請訪問https://bintray.com/android/android-tools/com.google.gms.google-services/)或?qū)om.google.android.gms的版本更新為10.0.1。我的build.gradle(模塊:應(yīng)用)....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.+' compile 'com.android.support.constraint:constraint-layout:1.0.2' testCompile 'junit:junit:4.12' compile 'com.google.firebase:firebase-messaging:10.0.1' compile 'com.google.android.gms:play-services-maps:11.0.4' compile 'com.google.android.gms:play-services-location:11.0.4'}apply plugin: 'com.google.gms.google-services'現(xiàn)在需要進行哪些更改?
3 回答

千萬里不及你
TA貢獻1784條經(jīng)驗 獲得超9個贊
您必須為所有3個庫僅使用一個版本
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.android.gms:play-services-maps:11.0.4'
compile 'com.google.android.gms:play-services-location:11.0.4'
或僅將10.0.1用于3個庫
- 3 回答
- 0 關(guān)注
- 600 瀏覽
添加回答
舉報
0/150
提交
取消