版本号:2.0.3
使用场景:Tab+ViewPager+Fragment,结合autoRefresh()
D/LeakCanary: ├─ com.xxxx.ui.main.fragment.DynamicCategoryFragment instance
D/LeakCanary: │ Leaking: NO (Fragment#mFragmentManager is not null)
D/LeakCanary: │ mContext instance of com.xxxx.ui.main.activity.MainActivity with mDestroyed = false
D/LeakCanary: │ Fragment.mTag=android:switcher:2131232905:43583285
D/LeakCanary: │ ↓ DynamicCategoryFragment.rootView
D/LeakCanary: │ ~~~~~~~~
D/LeakCanary: ╰→ com.scwang.smart.refresh.layout.SmartRefreshLayout instance
D/LeakCanary: Leaking: YES (ObjectWatcher was watching this because com.xxxx.ui.main.fragment.
D/LeakCanary: DynamicCategoryFragment received Fragment#onDestroyView() callback (references to its views should be cleared to
D/LeakCanary: prevent leaks))
D/LeakCanary: Retaining 22267 bytes in 386 objects
D/LeakCanary: key = e38d2311-986f-491b-850d-edf45acac492
D/LeakCanary: watchDurationMillis = 5394
D/LeakCanary: retainedDurationMillis = 394
D/LeakCanary: View not part of a window view hierarchy
D/LeakCanary: View.mAttachInfo is null (view detached)
D/LeakCanary: View.mID = R.id.refreshLayout
D/LeakCanary: View.mWindowAttachCount = 1
D/LeakCanary: mContext instance of com.xxxx.ui.main.activity.MainActivity with mDestroyed = false
D/LeakCanary: 928 bytes retained by leaking objects
3条答案
按热度按时间2hh7jdfx1#
我也遇到这个问题了, @NewHuLe 请问有解决办法嘛?
bhmjp9jg2#
找到解决办法了吗?大佬们
wrrgggsh3#
2024了还没有办法解决吗