Android Question Different APK size compiled from IDE and from B4ABuilder.exe

Pendrush

Well-Known Member
Licensed User
Longtime User
APK compiled from IDE: 4,686,123 bytes
APK compiled with B4ABuilder.exe: 5,096,098 bytes

Difference is inside APK in file classes.dex
classes.dex inside APK compiled from IDE: 7,411,100 bytes
classes.dex inside APK compiled with B4ABuilder.exe: 8,927,192 bytes

Both APK are build with same parameters, and both work on device as expected.
B4A IDE: Release (Obfuscate), Configuration=Develop
B4ABuilder.exe -Task=Build -BaseFolder=d:\AndroidApp\Test\ -Obfuscate=True -ShowWarnings=True -Configuration=Develop -Output=Test.apk

Also when I check App info (on Android device) for both APK, Storage (Application) is also different for about 1,5MB
Is safe to use APK build from B4ABuilder.exe with over 1,5MB difference in size?

EDIT: I'm using B4A v 5.50
 
Last edited:

Pendrush

Well-Known Member
Licensed User
Longtime User
I think about application stability, not about injected code :), and -optimize=true, solve problem.
 
Upvote 0
Top