Flink Oct 6, 2025

Managing Dependency Hell in a 400-Module Android Project

Article Summary

Erdem Topak from Flink reveals how their Android team scaled from 30 to 437 modules—then discovered 400 unused dependencies silently killing their build times. Here's how they built a custom solution when existing tools failed.

Flink's Android project grew to support 15 engineers working simultaneously, but dependency management spiraled out of control. With 4,652 total dependencies across 437 modules, popular tools like the Dependency Analysis Gradle Plugin required 48GB of memory and 2-3 hours to run, then broke their build. They needed a better approach.

Key Takeaways

Critical Insight

Building a custom dependency analyzer delivered 15% faster builds and removed 400 unused dependencies in a fraction of the time existing tools required.

The article includes the actual implementation details of their binary search validation approach and how they handle generic type detection through bytecode analysis.

Recent from Flink

Related Articles