gpt4 book ai didi

firebase - 任务 ':cloud_firestore:extractDebugAnnotations'的执行失败

转载 作者:行者123 更新时间:2023-12-03 03:58:06 53 4
gpt4 key购买 nike

在运行时在抖动中面临此错误。应用已成功连接到Firebase。在运行我也在使用android studio时也花费了太多时间。

//依赖

dependencies:
flutter:
sdk: flutter
cloud_firestore: ^0.13.0+1
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cloud_firestore:extractDebugAnnotations'.
> Could not resolve all files for configuration ':cloud_firestore:lintClassPath'.
> Could not download kotlin-compiler.jar (com.android.tools.external.com-intellij:kotlin-compiler:26.5.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/26.5.0/kotlin-compiler-26.5.0.jar'.
> Premature end of Content-Length delimited message body (expected: 24538383; received: 14942096

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 13m 20s
Finished with error: Gradle task assembleDebug failed with exit code 1

最佳答案

试试这个..

  • 将Gradle升级到5.4.1版。
  • 将Gradle插件版本升级到3.5.0。
  • 在项目的android目录中运行./gradlew dependencies命令,该命令下载了缺少的path_provider依赖项。
  • 运行flutter clean然后运行flutter run
  • 关于firebase - 任务 ':cloud_firestore:extractDebugAnnotations'的执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59533566/

    53 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com