【发布时间】:2021-01-19 07:42:50
【问题描述】:
- 出了什么问题: 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系。
无法解析配置“:app:debugCompileClasspath”的所有任务依赖项。 找不到 com.google.firebase:firebase-analytics:。 要求: 项目:应用程序
-
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
-
通过https://help.gradle.org获得更多帮助
在 2 秒内构建失败 异常:Gradle 任务 assembleDebug 失败,退出代码为 1
【问题讨论】:
-
你在build.gradle中添加
com.google.firebase:firebase-analytics这个依赖了吗? -
添加你的 build.gradle 文件
标签: java android firebase android-studio flutter