Last active
February 27, 2020 02:22
-
-
Save akhgupta/fddaad12bb0346624a8b7801467e1b42 to your computer and use it in GitHub Desktop.
leakcanary-android-no-op - Class,Method not found solution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/src/debug/java/com/akhil/sampleapp/CustomMultiDexApplication.java | |
package com.akhil.sampleapp; | |
import android.support.multidex.MultiDexApplication; | |
import com.squareup.leakcanary.AndroidExcludedRefs; | |
import com.squareup.leakcanary.LeakCanary; | |
import com.squareup.leakcanary.RefWatcher; | |
public class CustomMultiDexApplication extends MultiDexApplication { | |
public RefWatcher refWatcher; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
refWatcher = LeakCanary.install(this, LeakSlackUploadService.class, AndroidExcludedRefs.createAppDefaults().build()); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/src/release/java/com/akhil/sampleapp/CustomMultiDexApplication.java | |
package com.akhil.sampleapp; | |
import android.support.multidex.MultiDexApplication; | |
import com.squareup.leakcanary.RefWatcher; | |
public class CustomMultiDexApplication extends MultiDexApplication { | |
public RefWatcher refWatcher; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment