Godot Unoptimized APK (Android App Bundles) - Google Play

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

I will publish my game on google play but, I get on google play console “unoptimized APK” error.

  • How do we make Android App Bundle in Godot?
  • Do I need to recompile the engine for this?
:bust_in_silhouette: Reply From: wombatstampede

As far as I know this is not an error but a warning. (If it is actually an error then a screenshot or similar would be helpful.) Although I admit that this is an inconvenience at least.

There’s an issue for that.

So at the moment (and probably also when 3.2 is released) there’s no automatic way to build Godot using Android App Bundles.

You’d need to package the apk yourself. Probably using Android Studio. I didn’t go this way so far so I can’t tell how to do this in detail.

You might be able to optimize your android app to a certain extent by using the Multiple Apk approach:

Which is also mentioned here:
See also:

You’d have to export your app as a seperate apk for each cpu. (arm32, arm64, x86(optional))

This appears to be a warning on Google Play, but cannot be crossed. In order to use bundle in Android Studio, do I have to recompile the game engine and create a custom package?

I create custom apk for each architecture.

Wasn’t it possible to publish without doing this? Was it compulsory?

hhuseyincihangir | 2019-10-22 08:27

Are you sure that it can’t be crossed? That is new to me. Aren’t there any other warnings which could cause this?
(I.e. about minimum sdk version or missing 64bit code)

And yes, It was (probably still is) possible to publish godots apks. Although the last time I tried, was some months ago though. (I also got that warning at that time.)

About Android Studio:
I didn’t try to build with Android Studio, yet. Probably the game engine doesn’t need to be recompiled. I’d try to create a minimal project and then extract the project files from the own apk and add them at the “right places”.

wombatstampede | 2019-10-22 08:42

so, what did you do then? in the exact same issue right now

zen3001 | 2020-01-06 21:41

I just continued with the warning. If something stops you from continuing there then it is usually for another reason.

For example look at the discussion here: (near the end)
Add Android Application Bundle option in the Android export template options · Issue #342 · godotengine/godot-proposals · GitHub

In that example some other sections hadn’t been completed and therefore publishing wasn’t possible.

wombatstampede | 2020-01-07 07:27