Forked from akhgupta/debug-CustomMultiDexApplication.java
Created
February 27, 2020 02:22
-
-
Save CrandellWS/245cdba350abd77ef8997a3a34d90d57 to your computer and use it in GitHub Desktop.
leakcanary-android-no-op - Class,Method not found solution
This file contains 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 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