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

Plugin Makes Build APK Too Large #232

Closed
TristanGrobler opened this issue Mar 17, 2023 · 1 comment
Closed

Plugin Makes Build APK Too Large #232

TristanGrobler opened this issue Mar 17, 2023 · 1 comment

Comments

@TristanGrobler
Copy link

TristanGrobler commented Mar 17, 2023

Before Adding:
Screenshot 2023-03-17 at 14 11 10

After Adding:
Screenshot 2023-03-17 at 14 06 36

As can be seen, after adding the package, the release apk size is around 80mb. When I remove it and add another package, the release size is around 35mb.

Each time I run a "flutter pub clean && flutter pub get && flutter build apk" between any changes.

To recreate this, create a new flutter project, add the dependency and run the above command in terminal.

@myselfuser1
Copy link

This will help https://www.youtube.com/watch?v=gAUVz0U7eyA

@endigo
Copy link
Owner

endigo commented Mar 18, 2023

Hello, you should use app bundle, not APK.
https://docs.flutter.dev/deployment/android#build-an-app-bundle

This will help you to reduce the final APK size.

@endigo endigo closed this as completed Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants