Android:vlc-android-sdk增加60MB到我的APK文件大小 [英] Android: vlc-android-sdk increase 60MB to my apk file size
问题描述
我的apk文件大小为5MB
My apk file size is 5MB
将"de.mrmaffen:vlc-android-sdk:2.0.6"
添加到gradle后,apk大小增加到62MB!
After add "de.mrmaffen:vlc-android-sdk:2.0.6"
to gradle, apk size increase to 62MB !
我该如何解决?
谢谢
否:我更改为以下代码,但无法正常工作
Not: i change to below code, but not work
compile ("de.mrmaffen:vlc-android-sdk:2.0.6"){
exclude group: 'io.card'
}
推荐答案
VLC使用很多本机代码.结果,每个CPU体系结构具有18-30MB的本机库.虽然可以在APK中对其进行一定程度的压缩,但APK的增加57MB实际上比我预期的要好.
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.
您要么需要:
-
与它同住,或
Live with it, or
使用拆分或产品样式来表示您愿意支持的CPU体系结构的子集(该库本身支持 arm64-v8a
, armeabi-v7a
, mips
, x86
和 x86_64
)或
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
请勿使用VLC
这篇关于Android:vlc-android-sdk增加60MB到我的APK文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!