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

Specifying target platform not working for stringcare #7

Open
3rj opened this issue Apr 28, 2021 · 1 comment
Open

Specifying target platform not working for stringcare #7

3rj opened this issue Apr 28, 2021 · 1 comment

Comments

@3rj
Copy link

3rj commented Apr 28, 2021

Hi.

I build APK file with command

flutter build apk --target-platform android-arm

After I extract the APK in lib folder there are other platform folders with libstringcare.so included with does not needed.
This increases the APK size.

@efraespada
Copy link
Member

That command doesn't work for me.

there are other platform folders with libstringcare.so included with does not needed

You are right, --target-platform android-arm should not include other arch libraries.

I use this:

flutter build appbundle

According to this documentation, aab will let Google Play generate different APKs:

https://developer.android.com/guide/app-bundle

An Android App Bundle is a publishing format that includes all your app’s compiled code and resources, and defers APK generation and signing to Google Play.
Google Play uses your app bundle to generate and serve optimized APKs for each device configuration, so only the code and resources that are needed for a specific device are downloaded to run your app. You no longer have to build, sign, and manage multiple APKs to optimize support for different devices, and users get smaller, more-optimized downloads.

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

2 participants