Flutter正在终端中显示此消息,任何人都可以帮忙。
Execution failed for task ':app:compileDebugJavaWithJavac'.
下面是VScode终端的代码报告
PS C:\Users\USER\Documents\Practice\Mobile\Flutter\hello_flutter> flutter run
Using hardware rendering with device sdk gphone x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib\main.dart on sdk gphone x86 in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not create service of type DefaultUserHomeScopedCompileCaches using UserHomeScopeServices.createCompileCaches().
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 10s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 12.0s
Exception: Gradle task assembleDebug failed with exit code 1
我已经尝试了所有可能的解决方案,谢谢您能对此问题畅通无阻。
我也有一个屏幕截图,请更加清楚。