![](/img/trans.png)
[英]Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.[Flutter]
[英]flutter run Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'
我在第一次运行干净的新颤振项目时收到此错误。
FAILURE:构建失败,出现异常。
什么地方出了错:
无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系。
无法使用 JavaGradleScopeServices.createAnnotationProcessorDetector() 创建 AnnotationProcessorDetector 类型的服务。
尝试:
使用 --stacktrace 选项运行以获取堆栈跟踪。 使用 --info 或 --debug 选项运行以获得更多日志输出。 使用 --scan 运行以获得完整的见解。
在https://help.gradle.org获取更多帮助
在 0 秒内构建失败
正在运行 Gradle 任务“assembleDebug”...
运行 Gradle 任务 'assembleDebug'... 完成 1.5 秒 Gradle 任务 assembleDebug 失败,退出代码为 1
打开你的项目并在你的终端上运行
./gradle clean
完成后,运行
./gradle build
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.