![](/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.