Android: vlc-android-sdk increase 60MB to my apk file size

后端 未结 1 695
暖寄归人
暖寄归人 2021-01-07 05:34

My apk file size is 5MB

After add \"de.mrmaffen:vlc-android-sdk:2.0.6\" to gradle, apk size increase to 62MB !

How i can resolved it ?

T

相关标签:
1条回答
  • 2021-01-07 06:05

    VLC uses lots of native code. As a result, it has 18-30MB of native libraries per CPU architecture. While that will be compressed somewhat in the APK, a 57MB increase in APK is actually better than I would expect.

    You either need to:

    • Live with it, or

    • Use splits or product flavors to indicate which subset of CPU architectures you are willing to support (the library itself supports arm64-v8a, armeabi-v7a, mips, x86, and x86_64), or

    • Do not use VLC

    0 讨论(0)
提交回复
热议问题