【发布时间】:2021-01-18 07:59:56
【问题描述】:
我按照说明将 Android 应用添加到 Firebase 项目,但是当我运行代码时出现以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
> Could not find com.google.firebase:firebase-analytics:.
Required by:
project :app
我该如何解决?我只是从官方 Firebase 文档中复制和粘贴,我正在使用 Flutter。
app/build.gradle
apply plugin: 'com.google.gms.google-services'
dependencies {
implementation 'com.google.firebase:firebase-analytics'
...
}
android/build.gradle
dependencies{
classpath 'com.google.gms:google-services:4.3.4'
...
}
【问题讨论】:
标签: android firebase flutter gradle dart