0 votes

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.

in Engine by (15 points)

1 Answer

0 votes
Best answer

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.
https://developer.android.com/topic/performance/reduce-apk-size

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

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:
https://github.com/godotengine/godot/issues/18865#issuecomment-481369724

by (3,232 points)
selected by

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?

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

I get this Warning too but it lets me continue.

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 
Warning:
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.
Resolution:
Use the Android App Bundle to automatically optimize for device configurations, or manage it yourself with multiple APKs.

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)

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

Edit:
Check if there's anything else that stops play.google.com 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.

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.