我已经完成了应用程序的编码,当我尝试通过编辑两个 build.gradle 文件并将 android studio 更新到最新版本来为我的应用程序配置 firebase 时,编辑器在尝试以下操作后向我显示了此错误同步我的项目:
Gradle 同步失败:找不到 com.google.code.gson:gson:2.8.5。
最佳答案
尝试将其添加到您的依赖项中:
implementation 'com.android.support:multidex:1.0.1'
implementation 'com.google.code.gson:gson:2.8.0'
在项目 gradle 中:
classpath 'com.google.gms:google-services:4.2.0'
关于java - 尝试激活 firebase 后,我的 Android 应用程序无法在 Android Studio 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60635107/