問題是我需要Firebase版本11.0.4,但我有11.0.4 ...Firebase依賴衝突發現com.google.firebase:firebase-core:.11.0.4,但需要版本11.0.4
這是我的構建腳本
ext {
supportLibraryVersion = '25.3.1'
playServicesVersion = '11.0.4'
firebaseVersion = '11.0.4'
}
dependencies {
compile project(":core")
compile fileTree(dir: 'libs', include: ['*.jar'])
// support libraries
compile "com.android.support:support-v4:$supportLibraryVersion"
compile "com.android.support:appcompat-v7:$supportLibraryVersion"
compile "com.android.support:cardview-v7:$supportLibraryVersion"
compile "com.android.support:recyclerview-v7:$supportLibraryVersion"
//play services
compile "com.google.android.gms:play-services-maps:$playServicesVersion"
compile "com.google.android.gms:play-services-location:$playServicesVersion"
compile "com.google.android.gms:play-services-auth:$playServicesVersion"
compile "com.google.android.gms:play-services-plus:$playServicesVersion"
compile "com.google.firebase:firebase-core:.$firebaseVersion"
compile "com.google.firebase:firebase-messaging:$firebaseVersion"
.....
}
apply plugin: 'com.google.gms.google-services'
找到com.google.firebase:火力核心:.11.0.4,但需要對谷歌服務的插件版本11.0.4。 :app:processDebugGoogleServices FAILED :app:processDebugGoogleServices(Thread [Daemon worker Thread 7,5,main])完成。花了0.001秒。
失敗:生成失敗,出現異常。
出了什麼問題: 執行失敗的任務 ':應用程序:processDebugGoogleServices'。
請要麼通過更新的谷歌服務插件的版本修復版本衝突(有關最新版本可在https://bintray.com/android/android-tools/com.google.gms.google-services/)或更新com.google.android.gms的版本11.0.4。
嘗試: 使用--stacktrace選項運行以獲取堆棧跟蹤。使用--debug選項運行以獲取更多日誌輸出。
我的谷歌播放服務版本是43,sugestions?
您是否已將Google Repository更新爲最新版本? –
谷歌存儲庫更新版本57 – lctr30