in release version, the code below gets a compile error.
private void installLeakCanary() {
if (!LeakCanary.isInAnalyzerProcess(this)) {
LeakCanary.install(this);
}
}
I have the same issue.
me too
i got similar issue, resolved using https://gist.github.com/akhgupta/fddaad12bb0346624a8b7801467e1b42
I have same issue too
@akhgupta I already add method isInAnalyzerProcess in leakcanary-android-no-op by myself.
This is just because the no-op version of the library doesn't have isInAnalyzerProcess(), right?
@colinrtwhite That's right.
Is there a work-around for this issue aside from running the 1.5 snapshots? Thanks!
1.5 will be released soon. In the meantime, the work around would be to have a DebugApplication and move the LeakCanary init code there.
What about refwatcher if we initialize in debug application? Should we move LeakCanary.install() to debug as well
Most helpful comment
1.5will be released soon. In the meantime, the work around would be to have a DebugApplication and move the LeakCanary init code there.