我已将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更新到最新版本。 –