我已將Firebase添加到Android應用以推送通知。在使用之前,我已經更新了build.gradle。它的工作正常。無法更新Firebase依賴關係(com.google.firebase)
compile 'com.google.firebase:firebase-messaging:9.2.0'
現在我已更新到最新的庫,但出現錯誤。
dependencies {
//....
compile 'com.google.firebase:firebase-core:10.0.1'
}
我在的時候得到錯誤重建項目
Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugApkCopy'. Could not find com.google.firebase:firebase-core:10.0.1. Required by: DGApp:app:unspecified
預先感謝您。
檢查我的回答here.http://stackoverflow.com/questions/37360126/getting-exception-java-lang-noclassdeffounderror-com- google-firebase-firebaseop/38224316#38224316它可能對您有所幫助 –
您是否最近更新了您的支持庫?檢查此答案http://stackoverflow.com/a/39302669/3111083。 –
謝謝。現在我正在將我的SDK更新到最新版本。 –