This is an automated archive made by the Lemmit Bot.
The original was posted on /r/androiddev by /u/timusus on 2025-02-21 11:30:03+00:00.
After updating KSP, Hilt and some other plugins on various projects recently, I keep running into weird and hard to track down build time errors, that have cost me hours, and maybe even days.
Build errors can be really difficult to track down, because each project’s build is so unique - there’s a chance you’re the first to encounter each problem. The stack traces are often deep in some plugin, and rarely provide meaningful information you can act on, so you’re stuck guessing, upgrading random dependencies and hoping, or abandoning your plugin update altogether.
I discovered that there’s a solution - declaring all your plugins in the root level build.gradle file.
This post dives a little deeper into that, explaining why this helps.