-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed as not planned
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: qualityA truly polished experienceA truly polished experienceteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
The code tries to print the following message when there's non-constant IconData during a release build: Avoid non-constant invocations of IconData or try to build again with --no-tree-shake-icons.
However, this is what it actually looks like:
ianh@burmese:~/dev/rfw$ flutter build appbundle lib/client.dart
💪 Building with sound null safety 💪
Running Gradle task 'bundleRelease'...
This application cannot tree shake icons fonts. It has non-constant instances of IconData at the following locations:
- file://github.com/home/ianh/dev/rfw/lib/core_widgets.dart:398:10
FAILURE: Build failed with an exception.
* Where:
Script '/home/ianh/dev/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1005
* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command '/home/ianh/dev/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.
* Get more help at https://help.gradle.org
BUILD FAILED in 34s
Running Gradle task 'bundleRelease'... 34.8s
Gradle task bundleRelease failed with exit code 1
ianh@burmese:~/dev/rfw$
cc @dnfield
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: qualityA truly polished experienceA truly polished experienceteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team