移动性能测试 LeakCanary 求解出现 leak analysis failed 怎么办

匿名 · 2017年06月09日 · 1481 次阅读

配置 LeakCanary
dependencies {
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
}

public void onCreate() {
super.onCreate();
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
LeakCanary.install(this);
// Normal app init code...
}

在手机上运行结果

求教怎么解决 leak analysis failed

共收到 3 条回复 时间 点赞
匿名 #1 · 2017年06月09日

没 Google 到解决方案,请大牛指点😁

匿名 #3 · 2017年06月14日
回复

谢谢,换了个内存大的手机可以了😁

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册