我运行flutter upgrade
命令花费了太多时间,之后我正在运行我的项目,该项目在升级之前运行正常,但是现在在屏幕上显示了gradle build错误,这是控制台详细信息。
Checking Dart SDK version...
Flutter requires PowerShell 5.0 or newer.
See https://flutter.dev/docs/get-started/install/windows for more.
Building flutter tool...
Running pub upgrade...
Running "flutter pub get" in gtvsports1... 4.0s
Launching lib\main.dart on SM G920W8 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Checking Dart SDK version...
Flutter requires PowerShell 5.0 or newer.
See https://flutter.dev/docs/get-started/install/windows for more.
Building flutter tool...
Running pub upgrade...
Running "flutter pub get" in gtvsports1... 1.1s
W
rong full snapshot version, expected '1d7acad1540192ac459cf60344efb
7c1' found '4d75e7eb64b77034b9e3e19577811de7'
I
solate creation failed
Compiler failed on C:\Users\Waqas\AndroidStudioProjects\gtvsports1\lib\main.dart
FAILURE: Build failed with an exception.
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 747
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebugArm64'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
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 2m 28s
Finished with error: Gradle task assembleDebug failed with exit code 1