【发布时间】:2019-03-25 01:35:45
【问题描述】:
在我的 android 应用程序的构建文件中,我给出了错误版本的库 "com.google.firebase:firebase-core:17.0.0",目前最新版本是 "com.google.firebase:firebase-core:16.0.4"。
后来,我更正了构建文件以使用正确的版本'com.google.firebase:firebase-core:16.0.4'。现在在构建应用程序时,我仍然收到错误消息。
Failed to resolve: com.google.firebase:firebase-core:17.0.0
我什至尝试删除依赖项"com.google.firebase:firebase-core****",但我仍然收到错误消息。请帮我解决。
【问题讨论】:
-
为什么使用
api?尝试使用implementation,然后确保您的根 build.gradle 中有google()。但是,更新 gradle 将在大多数情况下解决问题。检查此链接:stackoverflow.com/a/50789520/4409113
标签: android firebase android-studio build