Issue
I have a already try multiple methods but failed,
FAILURE: Build failed with an exception.
-
Where:
Script ‘C:\Users\IMBA\flutter\packages\flutter_tools\gradle\flutter.gradle’ line: 1070 -
What went wrong:
Execution failed for task ‘:app:compileFlutterBuildDebug’.
Process ‘command ‘C:\Users\IMBA\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 16s
Exception: Gradle task assembleDebug failed with exit code 1
give me a prefect suggestion
Solution
Update the packages in your project. Check if there is any package that needs to be updated.
I’ve update the package flutter_settings_ui: ^2.0.1 to latest and it solved the issues.
Answered By – Nitish Mishra
Answer Checked By – Candace Johnson (FlutterFixes Volunteer)