Skip to content

Show a warning if gradle is about to crash because of non-ascii characters #25589

@amirh

Description

@amirh

A gradle bug causes the gradle daemon to crash if there are non-ascii characters in any environment variable and the locale is not properly set (gradle/gradle#3117).
We bumped into this issue a few times on CI (#24935).

It would be useful for the flutter tool to detect this state and show a warning.

Repro steps (makes gradle crash):

WARNING this puts gradle in a bad state on my machine and my only way out of it was rebooting, try only if you have time to reboot 😄

unset LANG
export SOME_ENV="א"
flutter build apk

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityt: flutter doctorProblem related to the "flutter doctor" toolt: gradle"flutter build" and "flutter run" on Androidteam-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