LeakCanary - memory leak detection library for Android and Java.
ProGuard rules for LeakCanary
Add the following lines to your ProGuard configuration proguard.cfg file in project.
-dontwarn com.squareup.haha.guava.** -dontwarn com.squareup.haha.perflib.** -dontwarn com.squareup.haha.trove.** -dontwarn com.squareup.leakcanary.** -keep class com.squareup.haha.** { *; } -keep class com.squareup.leakcanary.** { *; } # Marshmallow removed Notification.setLatestEventInfo() -dontwarn android.app.Notification
For more information about LeakCanary please see the website.