我的項目運行良好util我添加FCM build.gradle。這裏Firebase雲消息衝突fb
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzr;
錯誤我的依賴關係:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-messaging:9.4.0'
...
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.facebook.android:audience-network-sdk:4.14.1'
}
搜索了很久之後,我regconize在依賴某些庫可以使用具有差異的版本相同的依賴。但我不知道如何解決它。有任何想法嗎?
搜索一些關於多dex..don't知道如果那是你在尋找什麼 –
有你試着用'建設>清潔Project'清洗你的項目,然後重建? –
@qbix:我試過清理,重新啓動AS,重新啓動計算,但它不起作用 – maphongba008