我刚刚迁移到gradle 4.1.0 / gradle包装器6.6.1,现在我的应用程序停留在初始屏幕上。它仅在发行版本上发生。它正在调试中,除发行版以外的所有apk都不会超过启动画面。运行应用之前,我正在使用WidgetsFlutterBinding.ensureInitialized();
。运行debug apk和profile apk没问题。构建调试和配置文件apk时不会引发错误,但是构建发行版apk时有时会起作用,有时会引发以下错误:
FAILURE: Build failed with an exception.
* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 646
* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
> The value for this property cannot be changed any further.
* 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 1s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 2.4s
Gradle task assembleRelease failed with exit code 1
这是什么问题?