Content-Length: 281334 | pFad | http://github.com/flutter/flutter/issues/87964

27 Non-constant IconData message is not what was intended · Issue #87964 · flutter/flutter · GitHub
Skip to content

Non-constant IconData message is not what was intended #87964

@Hixie

Description

@Hixie

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

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: qualityA truly polished experienceteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/flutter/flutter/issues/87964

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy