如何为我的Android Studio项目减少Apk中lib文件夹的大小

问题描述 投票:0回答:1

lib占用了将近18 MB,如何减少它?

implementation 'com.github.bumptech.glide:glide:4.7.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'

implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.2.0'
implementation 'org.jsoup:jsoup:1.10.3'
implementation 'org.ocpsoft.prettytime:prettytime:4.0.1.Final'


implementation 'com.google.android.gms:play-services-ads-lite:18.2.0'


implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'
implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'
implementation 'com.github.ybq:Android-SpinKit:1.4.0'`

 https://i.stack.imgur.com/FL1Y2.png

android-studio lib
1个回答
0
投票
由于您使用了第三方库,因此您的apk的zie变得更大,要解决此问题,您只需将apk拆分为不同的android ABi的]]

然后,每个ABI apk将具有其单独的Lib文件夹,其尺寸较小..

或尝试创建应用程序Bundles apk并在PlayStore Play商店上发布将解决此问题☺️

© www.soinside.com 2019 - 2024. All rights reserved.