Leak Canary is an Android and Java library used to detect leak in the application
You can see the example in link below
Implementing a Leak Canary in Android Application
In your build.gradle you need to add the below dependencies:
Application class you need to add the below code inside your
That's all you need to do for LeakCanary, it will automatically show notifications when there is a leak in your build.