Sign in Go Pro

Detecting Android Memory Leaks with LeakCanary

Installing LeakCanary

 

Up next

About

LeakCanary is another library from the wonderful people at Square, which should be a regular fixture in any Android application. It’s billed as a “A memory leak detection library for Android and Java.” It attempts to follow any memory leaks within your application, and provide a leak trace to help you identify and eliminate leaks. In this lesson you will learn the answers to the following: * What is LeakCanary and what does it do? * Why was LeakCanary created? * How do I set up LeakCanary to watch Activities? Related Lessons: * [Detecting and Fixing a Leak](http://watch.caster.io/lessons/leakcanary-detecting-and-fixing-a-leak) * [Monitoring leaks in Fragments](http://watch.caster.io/lessons/leakcanary-monitoring-for-leaks-in-fragments) * [Why you need to use LeakCanary](http://watch.caster.io/lessons/why-you-need-to-use-leakcanary) Additional resources: * [LeakCanary Github](https://github.com/square/leakcanary) * [LeakCanary: Detect all memory leaks!](https://medium.com/square-corner-blog/leakcanary-detect-all-memory-leaks-875ff8360745)

Lessons in Detecting Android Memory Leaks with LeakCanary