What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
Process 'command '/Users/guoshun/Downloads/flutter/bin/flutter'' 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.
debug模式下可以正常运行,但是当使用build/Flutter APK时则无法正确打包,报如下问题:
FAILURE: Build failed with an exception.
Where: Script '/Users/guoshun/Downloads/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 991
What went wrong: Execution failed for task ':app:compileFlutterBuildRelease'.
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 11s
Running Gradle task 'assembleRelease'... 12.5s Gradle task assembleRelease failed with exit code 1 Process finished with exit code 1