小编Ash*_*zam的帖子

找不到 com.google.firebase:firebase-analytics-ktx:。需要:项目:app

我按照在 firestore 中注册我的移动应用程序的步骤进行了操作,但是当我尝试运行代码时,出现以下错误。我在注册我的应用程序时从 firestore 下载了 google services.json 并将其添加到我的项目的 android/app 级别。我还在我的 android/app/build gradle 文件中添加了“com.google.firebase:firebase-analytics-ktx”

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-ktx:.
     Required by:
         project :app

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* …
Run Code Online (Sandbox Code Playgroud)

gradle firebase flutter firebase-analytics

10
推荐指数
4
解决办法
7037
查看次数

标签 统计

firebase ×1

firebase-analytics ×1

flutter ×1

gradle ×1