通过库减少apk的大小 [英] Reducing size of apk through libraries

查看:30
本文介绍了通过库减少apk的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想减小 apk 的大小.我已经使用 Lint 和 Proguard 来删除未使用的资源并减小大小.现在我正在寻找像 ButterKnife 这样可以减少代码行数的库.他们还有其他好的库吗?可以帮助减少代码行数,从而帮助减少 apk 的大小吗?

I want to decrease the size of apk.I have already used Lint and Proguard to remove unused resources and reduce size.Now i am looking at libraries like ButterKnife which can reduce the lines of code.Are their any other good libraries which can help in minimizing lines of code and hence help in reducing size of apk?

推荐答案

有大量可用的库可以减少您在 Android 中执行的常见操作的代码行:

There is a huge list of libraries available which can reduce the line of codes for common operations you perform in Android:

  1. 改造 1.9.0:用于 REST API 调用
  2. Event Bus 2.4.0:摆脱接口
  3. Butterknife 6.1.0:用于 UI 注释
  4. Lombok :用于 getter setter
  5. Gson2.2.4:JSON 解析
  6. EventBus:用于事件处理

还有更多.

http://retrofiteventbus.blogspot.in/2015/02/this-is-what-they-sayeventbus-less-code.html

这篇关于通过库减少apk的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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