AndPermission
AndPermission copied to clipboard
内存泄露
.org/2020-04-18_17-25-34_422.hprof, createdAtTimeMillis=1587201969006, analysisDurationMillis=22565, applicationLeaks=[ApplicationLeak(className=mo.wall.org.main.MainActivity, leakTrace= ┬ ├─ com.yanzhenjie.permission.bridge.RequestExecutor │ Leaking: UNKNOWN │ Thread name: 'Thread-2' │ GC Root: Local variable in native code │ ↓ thread RequestExecutor.mMessenger │ ~~~~~~~~~~ ├─ com.yanzhenjie.permission.bridge.Messenger │ Leaking: UNKNOWN │ ↓ Messenger.mContext │ ~~~~~~~~ ╰→ mo.wall.org.main.MainActivity Leaking: YES (Activity#mDestroyed is true and ObjectWatcher was watching this) key = e4cfbf44-71b2-4d09-8843-165de3d54283 watchDurationMillis = 12880 retainedDurationMillis = 7879 , retainedHeapByteSize=115315)], libraryLeaks=[])@杭州-贴心老棉袄
相同内存泄漏,解决了吗?
相同内存泄漏,解决了吗?
放弃吧,自己下代码改吧,作者都不解决
我把with()传的参数换成了applicationContext,虽然不报内存泄漏了,但是显然还是有问题的。
有没有在onCallBack将mRequest置为null