Терминал запуска Flutter показывает исключение: задача Gradle AssemblyDebug завершилась неудачно с кодом выхода 1 - PullRequest
1 голос
/ 07 августа 2020

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

Я перепробовал все возможные решения, я был бы рад, если бы эта проблема была разблокирована.

У меня также есть снимок экрана для большей ясности, пожалуйста, проверьте.

...