
Android
文章平均质量分 73
AKApandaroad
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android Studio build失败情况解决方案
1.Android Studio -> preferences... -> Build, Execution, Deployment -> Build Tools -> GradleCheck the 'Offline work' under 'Global Gradle settings'It will reduce 90% gradle build time...原创 2018-10-19 12:02:14 · 12515 阅读 · 2 评论 -
如何使用EventBus?
在EventBus的官方github中,定义为EventBus...simplifies the communication between components decouples event senders and receivers performs well with Activities, Fragments, and background threads avoids...原创 2018-11-07 10:38:44 · 244 阅读 · 0 评论 -
Android内存优化相关
记录一下出现的问题:Android内存泄漏主要原因:1.单例模式生命周期导致内存泄漏2.静态变量--->存在jvm方法区,生命周期从类加载开始3.非静态内部类--->默认持有外部类的引用建议使用 静态内部类+弱引用的方式因为gc遇到弱引用的activity会释放4.使用thread或asynctask(默认隐式持有外部activity引用)5.集合中的对...原创 2018-11-07 11:09:44 · 242 阅读 · 0 评论