【发布时间】:2015-05-12 16:27:08
【问题描述】:
我使用 LeakCanary,不幸的是发生了泄漏,这里是 logcat:
In com.appturbo.appoftheday2015:2.09.2:222.
* com.appturbo.appturbo.ui.HomeActivity has leaked:
* GC ROOT com.android.internal.util.AsyncChannel$DeathMonitor.this$0
* references com.android.internal.util.AsyncChannel.mSrcContext
* leaks com.appturbo.appturbo.ui.HomeActivity instance
* Reference Key: e049c2ed-6784-4850-b794-20fa96c13dcf
* Device: motorola google Nexus 6 shamu
* Android Version: 5.1 API: 22
* Durations: watch=5176ms, gc=228ms, heap dump=4974ms, analysis=29320ms
你们中的一些人是否已经看到过这样的泄漏?任何想法?此泄漏出现在:
- 更改资源配置以切换语言
- 完成活动
- 重新开始活动
【问题讨论】:
-
你能在哪里解决这个问题?
-
嗨,我已经发布了这个问题的答案。如果您有同样的问题,希望这可以帮助您。
标签: android memory-leaks leakcanary