我試過很多本網站上的解決方案,沒有什麼工作對我來說, 累計,當我嘗試添加火力錯誤。我無法找到使用播放服務的依賴項。請幫助錯誤:超過一個庫包名「com.google.android.gms」
錯誤和應用程序的依賴關係:
我試過很多本網站上的解決方案,沒有什麼工作對我來說, 累計,當我嘗試添加火力錯誤。我無法找到使用播放服務的依賴項。請幫助錯誤:超過一個庫包名「com.google.android.gms」
錯誤和應用程序的依賴關係:
儘量保持依存關係如下:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'projects-1'
..........
..........
compile 'com.google.firebase:firebase-storage:10.0.0'
compile 'com.google.firebase:firebase-auth:10.0.0'
compile 'com.google.firebase:firebase-database:10.0.0'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
,並再次建立gradle這個。
我得到了同樣的問題,但我這樣做
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0' //use this version as the newest version
}
和我這樣做太
dependencies {
.
.
.
// compile project(':google-play-services') comment because this version isn't same with my firebase version, try to get the last google-play-service jar/compile the last version
compile 'com.google.android.gms:play-services:10.2.0'
compile ('com.google.firebase:firebase-messaging:10.2.0'){
exclude group: 'com.google.android.gms', module: 'com.google.android.gms'
}
}
apply plugin: 'com.google.gms.google-services' // i do it on every project i have
然後同步A和清理項目 可能這個幫助你,我想的版本谷歌播放服務應該是一樣的火力版本
更新
嘗試刪除舊google-service-play_lib
並添加compile 'com.google.android.gms:play-services:10.2.0' //use the newest
刪除它,它仍然得到同樣的錯誤,我怎麼得到我的圖書館 –
的更多細節後@supul dulanka:上面的回答編輯。檢查一次。 –
仍然沒有luck- https://drive.google.com/file/d/0B__FZmkvWnRMWXNCZW91MF84UUk/view?usp=sharing –