I just added Leak Canary 2 to my app build.gradle as described in the official docs:
dependencies {
// debugImplementation because LeakCanary should only run in debug builds.
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'
}
Now, when I run my app and check the logcat, I can find
2020-03-22 18:20:31.858 2401-2401/? D/LeakCanary: Installing AppWatcher
so the installation worked.
But is that everything I need? Or do I in addition have to watch objects manually using AppWatcher.objectWatcher.watch? That's not clear to me. Currently no issues are report by LeakCanary to me, but I doubt I did everything that perfect.