Android Question [CLOSED] - SDK 34 vs SDK 33 - bigger APK file size in SDK 34

Jmu5667

Well-Known Member
Licensed User
Longtime User
THIS IS NOT A BUG NOR AN ISSUE. IT IS NOW CLOSED

Hello

The same app under SDK 34 is much larger then SDK 33.

I have used 7zip to view the APK and here is what I found;

SDK 33SizeSDK 34Size
atlas_sos4.apk
5,592,107​
atlas_sos4.apk
19,725,524​
Not presentatlas_sos4.apk\assets\NotoColorEmojiCompat.ttf
10,530,840​
Not presentatlas_sos4.apk\classes3.dex
10,270,664​
atlas_sos4.apk\classes.dex
4,591,828​
atlas_sos4.apk\classes.dex
7,048,412​
atlas_sos4.apk\classes2.dex
4,930,780​
atlas_sos4.apk\classes2.dex
1,950,680​


The above are noticable differences that I identified.

Regards

John.
 
Last edited:

ppgirl

Member
Licensed User
Longtime User
Hi all,

Please don't close discussion. Do you have some improve about the issue?

When I create a empty B4XPages project and compile with 13.00 BETA #6, the APK is 513K.

1. The APK become 16M after include “AppCompat”.
or
2. The APK become 8.4M after include "FirebaseAdMob2"

When I create a empty B4XPages project and compile with 12.5, the APK is 145K.

1. The APK become 2250K after include “AppCompat”.
or
2. The APK become 3523K after include "FirebaseAdMob2"

I know the difference is source from Google SDK version, But I wonder we can remove the unused classes or asset?

work as build.gradle in Android Studio :
minifyEnabled true
shrinkResources true
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…