【问题标题】:flutter run Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'颤振运行无法确定任务':app:compileDebugJavaWithJavac'的依赖关系
【发布时间】:2019-12-23 22:59:55
【问题描述】:

我在第一次运行全新的 Flutter 项目时收到此错误。

FAILURE:构建失败并出现异常。

  • 出了什么问题:
    无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系。

    无法使用 JavaGradleScopeServices.createAnnotationProcessorDetector() 创建 AnnotationProcessorDetector 类型的服务。

  • 试试:
    使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。

  • 通过https://help.gradle.org获得更多帮助

0 秒内构建失败
正在运行 Gradle 任务“assembleDebug”...
运行 Gradle 任务 'assembleDebug'... 完成 1.5 秒 Gradle 任务 assembleDebug 失败,退出代码为 1

【问题讨论】:

标签: android gradle flutter


【解决方案1】:

打开你的项目并在你的终端上运行

./gradle clean

完成后,运行

./gradle build

【讨论】:

  • ./gradle 或 ./gradlew ?
猜你喜欢
  • 2021-09-10
  • 2021-01-26
  • 2020-04-15
  • 2021-06-18
  • 2021-01-18
  • 2020-05-31
  • 2021-04-14
  • 2021-02-16
  • 2021-07-25
相关资源
最近更新 更多