问题
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, andx86_64), orDo not use VLC
来源:https://stackoverflow.com/questions/45121130/android-vlc-android-sdk-increase-60mb-to-my-apk-file-size