[英]flutter run Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'
I am receiving this error on first run of a clean new flutter project.我在第一次运行干净的新颤振项目时收到此错误。
FAILURE: Build failed with an exception. FAILURE:构建失败,出现异常。
What went wrong:什么地方出了错:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系。
Could not create service of type AnnotationProcessorDetector using JavaGradleScopeServices.createAnnotationProcessorDetector().无法使用 JavaGradleScopeServices.createAnnotationProcessorDetector() 创建 AnnotationProcessorDetector 类型的服务。
Try:尝试:
Run with --stacktrace option to get the stack trace.使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.使用 --info 或 --debug 选项运行以获得更多日志输出。 Run with --scan to get full insights.使用 --scan 运行以获得完整的见解。
Get more help at https://help.gradle.org在https://help.gradle.org获取更多帮助
BUILD FAILED in 0s在 0 秒内构建失败
Running Gradle task 'assembleDebug'...正在运行 Gradle 任务“assembleDebug”...
Running Gradle task 'assembleDebug'... Done 1.5s Gradle task assembleDebug failed with exit code 1运行 Gradle 任务 'assembleDebug'... 完成 1.5 秒 Gradle 任务 assembleDebug 失败,退出代码为 1
open your project and run on your terminal打开你的项目并在你的终端上运行
./gradle clean
After finishing that, run完成后,运行
./gradle build
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.