Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yanshouwang opened this issue Jan 9, 2024 · 2 comments
Labels
a: build Building flutter applications with the tool c: proposal A detailed proposal for a change to Flutter d: api docs Issues with https://api.flutter.dev/ team-android Owned by Android platform team

Comments

@yanshouwang
Copy link

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...)

@dam-ease dam-ease added in triage Presently being triaged by the triage team d: api docs Issues with https://api.flutter.dev/ c: proposal A detailed proposal for a change to Flutter a: build Building flutter applications with the tool team-framework Owned by Framework team and removed in triage Presently being triaged by the triage team labels Jan 9, 2024
@goderbauer goderbauer added team-tool Owned by Flutter Tool team and removed team-framework Owned by Framework team labels Jan 9, 2024
@christopherfujino christopherfujino added team-android Owned by Android platform team fyi-tool For the attention of Flutter Tool team triaged-tool Triaged by Flutter Tool team and removed team-tool Owned by Flutter Tool team triaged-tool Triaged by Flutter Tool team labels Jan 9, 2024
@flutter-triage-bot flutter-triage-bot bot removed fyi-tool For the attention of Flutter Tool team triaged-tool Triaged by Flutter Tool team labels Jan 9, 2024
@gmackall
Copy link
Member

Thanks for the report! Opened as a website issue here: flutter/website#10032

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: build Building flutter applications with the tool c: proposal A detailed proposal for a change to Flutter d: api docs Issues with https://api.flutter.dev/ team-android Owned by Android platform team
Projects
None yet
Development

No branches or pull requests

5 participants