Gradle task assembleRelease failed with exit code 1

1,591 views
Skip to first unread message

Nitrate Rai

unread,
Jul 26, 2020, 10:12:30 AM7/26/20
to Flutter Development (flutter-dev)
How to Fix these error i try many things but it always show this error

Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

FAILURE: Build failed with an exception.

* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 882

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\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 1m 16s
Running Gradle task 'assembleRelease'...                           92.6s
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1

Harivamshi Diddiga

unread,
Jul 27, 2020, 2:05:23 AM7/27/20
to Flutter Development (flutter-dev)
try flutter clean and then run it...It might solve ur problem
Reply all
Reply to author
Forward
0 new messages