如何减少android应用程序的大小? [英] how to reduce android app size?

查看:84
本文介绍了如何减少android应用程序的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我正在使用android studio开发android应用.我已经使用tesseract库为OCR构建了一个Android应用.该应用程序当前运行良好,并提供了期望的输出,但是我的问题是它的大小.生成应用程序的大小为30 MB,与其他可用的OCR应用程序相比较大.我已经尝试过"minifyenabled = true",但是它只能减少300 kb的大小.所以我的问题是如何减小应用程序的大小?

First of all , I am using android studio for development of android app. I have build an android app for OCR using tesseract library. The app is currently working great and giving desire output but my problem is with its size. The size of the build app is 30 MB which is high compared to other OCR app available. I have tried "minifyenabled = true" but it reduce just 300 kb of size. So my question is how to reduce size of my app?

推荐答案

您可以使用架构.有关此示例,请参见旧金山演示项目.

You can use APK splits to build smaller versions of your app that target individual device architectures. For an example of this, see the San Angeles demo project.

如果您的应用不需要libpngt.so/libjpgt.so文件,则可以进一步减少它.

You can get a further reduction by removing the libpngt.so/libjpgt.so files if your app doesn't need them.

使用ProGuard可能也有帮助.

Using ProGuard may help too.

这篇关于如何减少android应用程序的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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