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

查看:96
本文介绍了通过库减少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. Retrofit 1.9.0:用于REST API调用
  2. Event Bus 2.4.0:摆脱接口
  3. Butterknife 6.1.0:用于UI注释
  4. Lombok:用于吸气塞装机
  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天全站免登陆