【问题标题】:my android app doesn't run on android studio after trying to activate the firebase尝试激活 Firebase 后,我的 android 应用程序无法在 android studio 上运行
【发布时间】:2020-06-23 09:10:54
【问题描述】:

我已经完成了我的应用程序的编码,当我尝试通过编辑两个 build.gradle 文件并将 android studio 更新到最新版本来为我的应用程序配置 firebase 时,编辑器在尝试后向我显示了这个错误同步我的项目:

Gradle 同步失败:找不到 com.google.code.gson:gson:2.8.5。

【问题讨论】:

  • 您的项目 build.gradle 中可能缺少一个条目,用于正确搜索存储库的位置。你可以添加你的 root/build.gradle 吗?

标签: java android firebase android-studio


【解决方案1】:

尝试将此添加到您的依赖项中:

implementation 'com.android.support:multidex:1.0.1'
implementation 'com.google.code.gson:gson:2.8.0'

在项目中:

classpath 'com.google.gms:google-services:4.2.0'

【讨论】:

    猜你喜欢
    • 2023-03-25
    • 1970-01-01
    • 2018-10-21
    • 2017-11-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-14
    • 1970-01-01
    相关资源
    最近更新 更多