华为EUI5.0基于7.0上的GestureBoostManager/InputMethodManager 内存泄露

在查项目中的内存泄露,当然是使用LeakCanary。

LeakCanary使用说明

https://www.liaohuqiu.net/cn/posts/leak-canary-read-me/

build exception

1.集成LC1.5.0时,出现编译报错

编译报错1

解决方案
1.check your gradle.property
2.set your jvmargs higher
like : org.gradle.jvmargs=-Xmx2048m
3.clean project and generate it.

see-> https://github.com/square/leakcanary/issues/821

2.集成LC1.5.2时,编译报错


编译报错2

see->https://github.com/square/leakcanary/issues/815
816,817,819都是一样的问题。

解决方案
downgrade LC version 1.5.2 to 1.5.1

android.gestureboost.GestureBoostManager leaks

测试机型 华为P9,EUI5.0,Android 7.0

EUI5.0出现的bug,应该是huawei自定义增强手势的类
https://github.com/square/leakcanary/issues/696

InputMethodManager

android.view.inputmethod.InputMethodManager$ControlledInputConnectionWrapper.mParentInputMethodManager
references android.view.inputmethod.InputMethodManager.mNextServedView
或者mStrView/mLastSrvView balabala
原生泄露
see->https://github.com/square/leakcanary/issues/750

WechatHelper

使用第三方库Mob 的社交登录出现
WechatHelper leaks

待续....

你可能感兴趣的:(华为EUI5.0基于7.0上的GestureBoostManager/InputMethodManager 内存泄露)