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

谁说我不能喝 提交于 2019-12-30 07:40:10

问题


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 ?

Thank you

Not: i change to below code, but not work

compile ("de.mrmaffen:vlc-android-sdk:2.0.6"){
   exclude group: 'io.card'
}

回答1:


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



来源:https://stackoverflow.com/questions/45121130/android-vlc-android-sdk-increase-60mb-to-my-apk-file-size

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!