我正在尝试包含 Firebase 身份验证,因此,我将 Firebase 身份验证中的一行代码包含到我的 Android Studio App Gradel 依赖项中。因此,当我开始同步 gradle 时,会出现一条错误消息,显示“错误:无法解析:com.google.firebase:firebase-core:18.1.0 在项目结构对话框中显示受影响的模块:应用程序”。
为了从我这边进行排序,我单击了消息中突出显示的应用程序链接,该链接进一步显示了一个包含所有依赖项的对话框,其中包含升级选项,因此我将它们一一升级。
但是问题仍然存在,并且仍然显示错误消息。
最佳答案
正确的版本应该是
implementation com.google.firebase:firebase-core:17.0.1
检查版本history
查看设置过程以获取更多信息:https://firebase.google.com/docs/android/setup
关于java - 错误 : Failed to resolve: com. google.firebase :firebase-core:18. 1.0 在项目结构对话框中显示受影响的模块:app,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57036878/