How to solve APK without optimization Warning when publishing in google play?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mgferr

I am able to create and run the apk but whe I try to publish it to google play I receive the following warning: " APK without optimization ".
Then it asks to use android app bundle but I didn’t find anything in the docs to help me do that.

:bust_in_silhouette: Reply From: wombatstampede

The play store just proposes that you can optimize the apk in terms of size by using a special format wich provides alternatives for arm 32-bit/64-bit/intel cpus.

As you say, it is a warning but not an error (as long as your apk stays below 100MB). The downside of not using App bundles is that your apks may be bigger than they could be.

As far as I know, Godot does not directly support the new App Bundle feature of google play.

This may get easier to implement in the godot 3.2 version as the android export will be completely changed.

Anyway, another way of optimizing your apk’s size is to use multi apk support:
See this disscussion on github:

I’ve already tried to use multi apk but it keeps the warning, I tried to upload different formats of apks, each one with unique screen and architecture but this still fails.
Notice that this is a blocking warning so I am not able to publish the app.
Is there any other filters that google use to validade this optmization which I can find in godot configs?

mgferr | 2019-06-12 12:42

A blocking warning? How big (MBs) is your apk?

I get this Warning too but it lets me continue.

wombatstampede | 2019-06-12 13:15

It is 56Mb when built with all architectures and 24Mb each one when built to single architecture. This is the full warning message:

Unoptimized APK 
This APK results in unused code and resources being sent to users. Your app could be smaller if you used the Android App Bundle. By not optimizing your app for device configurations, your app is larger to download and install on users' devices than it needs to be. Larger apps see lower install success rates and take up storage on users' devices.
Use the Android App Bundle to automatically optimize for device configurations, or manage it yourself with multiple APKs.

mgferr | 2019-06-12 13:44

Ok. This should not block your release. The play store “user interface” is sometimes a bit misleading. Are you absolutely sure that you didn’t oversee a “continue” or “publish” (or similar) button?

I uploaded my last update apk maybe 3 or 4 weeks ago. I was also displayed this info but I could continue publishing the update.

If you still find no way. Then you might show a (complete) screenshot of the webpage. (If there is sensitive information feel free to blur it though)

I am speaking of the web page which is (still) displayed after to click on “Close” acknowledging the warning.

Check if there’s anything else that stops from publishing the app. (Missing mandatory fields in the store listing, maybe Privacy Policy or content rating…) Normally, the UI should give you a hint when something isn’t completed.

wombatstampede | 2019-06-12 14:23

That’s it. I had to complete the Pricing & Distribution and App Content tab to make it ready to publish.
Thank you, man.

mgferr | 2019-06-12 14:50