如何降低的Andr​​oid APK大小? [英] How to reduce Android APK size?

查看:119
本文介绍了如何降低的Andr​​oid APK大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发出一种简单的Andr​​oid应用程序。它的APK大小为8MB。谁能告诉我如何减少APK大小?

I have developed a simple Android application. Its APK size is 8MB. Can anyone tell me how to reduce the APK size?

推荐答案

  • 尝试使 ProGuard的,即使没有混淆。它会从你的依赖删除未使用的Java code。
  • 查看是否有不需要的依赖关系 - 你已经添加的JAR文件,但没有使用
  • 检查你的资源,对于大型图片或其他文件。您可能需要改变自己的格式或分辨率,或删除他们,如果他们不使用。

  • Try enabling ProGuard, even without obfuscation. It will remove unused Java code from your dependencies.
  • See if you have unneeded dependencies - JARs that you've added but aren't using
  • Check your resources for large images or other files. You may want to change their format or resolution, or remove them if they're not in use.
  • 这篇关于如何降低的Andr​​oid APK大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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