Android:vlc-android-sdk增加60MB到我的APK文件大小 [英] Android: vlc-android-sdk increase 60MB to my apk file size

查看:53
本文介绍了Android:vlc-android-sdk增加60MB到我的APK文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆