【发布时间】:2017-04-12 23:54:29
【问题描述】:
我已将 Firebase 添加到 android 应用以进行推送通知。在我使用之前,我已经更新了 build.gradle。它工作正常。
compile 'com.google.firebase:firebase-messaging:9.2.0'
现在我已更新到最新的库,但出现错误。
dependencies {
//....
compile 'com.google.firebase:firebase-core:10.0.1'
}
我在重建项目时遇到了错误
错误:配置项目 ':app' 时出现问题。 无法解析配置 ':app:_debugApkCopy' 的所有依赖项。 找不到 com.google.firebase:firebase-core:10.0.1。 要求: DGApp:app:unspecified
提前谢谢你。
【问题讨论】:
-
在这里查看我的答案。stackoverflow.com/questions/37360126/…这可能会有所帮助
-
你最近更新了你的支持库吗?检查这个答案stackoverflow.com/a/39302669/3111083。
-
谢谢。现在我正在更新我的 SDK 到最新版本。
-
请检查我更新的问题。
-
请看我的回答:)。哦,为这个好问题+1,我实际上遇到了这个问题,我自己解决了,因此我添加了一个答案:)
标签: android android-studio firebase-cloud-messaging