Imagine being able to detect common Android memory leak issues while you're writing code, with a single click, without even running the app or relying solely on LeakCanary.
Sounds interesting, right?
This idea had been in my head for quite some time, but there was one problem: I had never developed an Android Studio / IntelliJ plugin before.
A few months ago, I decided to give it a shot. What started as curiosity turned into a deep dive into IntelliJ Platform development, static code analysis, Android memory leak patterns, blog posts, documentation, and countless experiments.
After a lot of learning, trial and error, and late-night debugging sessions, I finally built something that works.
Introducing
LeakLens —
an Android Studio plugin that helps identify common Android memory leak patterns directly inside the IDE.
The goal is not to replace LeakCanary. LeakCanary remains one of the best tools for runtime memory leak detection. LeakLens focuses on a different question:
"Can we catch certain leak-prone patterns before the app is even launched?"
I've decided to make the project completely open source and would genuinely appreciate feedback from the community.
I'd love to hear:
• What memory leak patterns have caused the most pain in your projects?
• What would make a tool like this genuinely useful for your team?
• Any ideas, criticism, feature requests, or contributions.
GitHub:
https://github.com/dev-vikas-soni/leak-lens
Plugin:
https://plugins.jetbrains.com/plugin/32079-leaklens
Looking forward to hearing your thoughts and learning from your feedback 🙌