godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.21k stars 21.22k forks source link

Godot 4.3 export to Android release and debug issue aab files #96161

Open zhenych opened 2 months ago

zhenych commented 2 months ago

Tested versions

Reproduce on Godot 4.3stable version.

System information

windows 10 - Godot 4.3

Issue description

When exporting to Android aab file I have got the issue. The release file is bigger than debug one. When I extracted the release file I found dir "BUNDLE-METADATA" containing com.android.tools.build.debugsymbols and big *.so files

Steps to reproduce

1 Create new project 2 Install Android build template 3 Project-Export add android export 4 Check: Use gradle build 5 Choose: Export AAB 6 Export project 7 Export with Debug create 2 variants using .aab extension

8 * to release export use keystore Screenshot_4

Minimal reproduction project (MRP)

issue_test.zip readme.txt file contains the keystore user and password I cannot download my .aab files because they are 45 MB for debug and 84 MB for release

zhenych commented 2 months ago

Screenshot_1 Screenshot_2

gaziduc commented 1 month ago

same issue here : apk is 100 Mo, aab is 180 Mo (both in release mode)

HedAurabesh commented 1 month ago

I believe that that is (partially) intentional.

Android release AAB images contain debug symbols and mapping tables that are split off by the Google Android Play Console after upload. That way, you do not have to manually upload them. In regular Android apps these are mostly the ProGuard deobfuscation files.

The final APK/AAB deployed to users will not contain those files.

Case in point: I created a simple Godot Android app and exported it as a debug and release AAB.

Once uploaded to the App store, the App Bundle explorer says:

image image

Most of the extra debug symbols come from "libgodot_android.so.sym". If you really don't want those, you probably will need to compile the Android export yourself and remove all debug symbols.