A very long story about my optimization of Cocos2d-x Android apps in size and performance

I would also recommend https://developer.android.com/studio/build/configure-apk-splits.html#configure-abi-split, which means that you end up with multiple APK (different version codes).

So I have (while starting a new game) with one universal (armeabi, armeabi-v7a, arm64-v8a, x86) APK with 29MB vs. 4 single APKs (between 8 and 10MB).

And I also set the extractNativeLibs flag.

1 Like

Hey @mars3142
I just read about extractNativeLibs flag It tols that delta updates will be smaller. But then what’s the disadvantage of doing this, any idea?

https://developer.android.com/topic/performance/reduce-apk-size.html

Hi @catch_up

I would think, that the major disadvantage will be the startup time, because the libs are not extracted and this need to be done at first. And I didn’t measured it yet, but if the lib is big, this can be a long time (depending on the device). But this is only my thoughts about it.