UpdateAppUtils
UpdateAppUtils copied to clipboard
存在内存泄漏
会有内存泄漏
同样遇到该问题
┬─── │ GC Root: Input or output parameters in native code │ ├─ okio.AsyncTimeout class │ Leaking: NO (PathClassLoader↓ is not leaking and a class is never leaking) │ ↓ static AsyncTimeout.$class$classLoader ├─ dalvik.system.PathClassLoader instance │ Leaking: NO (DownloadAppUtils↓ is not leaking and A ClassLoader is never leaking) │ ↓ PathClassLoader.runtimeInternalObjects ├─ java.lang.Object[] array │ Leaking: NO (DownloadAppUtils↓ is not leaking) │ ↓ Object[].[1034] ├─ update.DownloadAppUtils class │ Leaking: NO (a class is never leaking) │ ↓ static DownloadAppUtils.onError │ ~~~~~~~ ├─ ui.UpdateAppActivity$realDownload$1 instance │ Leaking: UNKNOWN │ Anonymous subclass of kotlin.jvm.internal.Lambda │ ↓ UpdateAppActivity$realDownload$1.this$0 │ ~~~~~~ ╰→ ui.UpdateAppActivity instance Leaking: YES (ObjectWatcher was watching this because ui.UpdateAppActivity received Activity#onDestroy() callback and Activity#mDestroyed is true) key = 7a2e6fb7-266f-491c-8589-47151652cee7 watchDurationMillis = 7575 retainedDurationMillis = 2574 ==================================== 0 LIBRARY LEAKS