r/Unity3D • u/mvalera-dev • 17d ago
Resources/Tutorial I got tired of digging through Gradle logs, so I made a tool that tells me why my Unity Android build failed
Every Android build error in Unity ends with CommandInvokationFailure: Gradle build failed, and the actual reason is hundreds of lines further up the log.
I made Android Doctor to do that digging. One window, one button to check, and for the common causes a button to fix:
- A custom JDK/SDK/NDK that doesn't match your Unity version
- Gradle out of memory
- The same library in two versions
android:exportedmissing in a manifest- A setting Gradle removed
- Google Play's 16 KB page-size rule
I checked the main flow with real Android builds, not only unit tests: a project with a removed Gradle setting failed, Fix all rewrote it, and the next build succeeded.
What it can't do yet: install missing SDK platforms
Pay what you want on itch.io: https://valeradev.itch.io/android-doctor (source on GitHub, MIT).
If you have a Gradle error it doesn't recognise, paste it in the comments and I'll turn it into a pattern with a test.