Skip to content

The "--no-shrink" FLAG with flutter build apk does't work as the document said. #141164

Description

@yanshouwang

Use case

The official document said that the R8 can be disabled with the --no-shrink flag when run flutter build apk.

But after I tried this, I found it doesn't work, the only way to disable R8 is modify the build.gradle.

Until I run the flutter build apk --help --verbose I just konw that this flag doesn't work any more, and this flag was hide without the --verbose flag, this flag confused me for a long time.
image

I think it's a nessery to clarify this in the docs.

Proposal

Please update the part of R8 in the official docs.
Or show this flg without --verbose when run flutter build apk --help(I event don't konw the --verbose flag can work with the --help command before...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: buildBuilding flutter applications with the toolc: proposalA detailed proposal for a change to Flutterd: api docsIssues with https://api.flutter.dev/team-androidOwned by Android platform team

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions