Yesterday I've literally spent a day to upgrade an old customer project from SDK 34 to 35. I have watched an entire season of a series while doing a small change -> sync gradle -> make project -> run on device with some invalidate cache mixed in between because it did compile successfully but gave error when running on a real device. I have finally given up and went to grab some coffee, when I came back it did run without any changes 🙃
it did compile successfully but gave error when running on a real device. I have finally given up and went to grab some coffee, when I came back it did run without any changes
It's a concurrency bug in your customer's code. Or some library/dependency they use.
The problem is Android Studio is the worst when throwing errors. For example, I got an error that says "File not found" when compiling the project. No info, which file, what path? Just a red text saying "File not found" and build failed. Retried compiling with --scan, --info, --debug, always same message and not a single clue in build logs.
Another error I hate is "[Hilt]". Just like that, [Hilt] with the brackets. A project works fine and after a few weeks customer wants a change, we recompile the project without even touching anything and right there it is. I mean what am I supposed to do if you don't tell me what you couldn't do lol.
Yeah, it's definitely broken. I've actually been staying on Koala since it came out, since newer versions removed some plugins/refactors that I needed. And I'm just working on my own projects now.
Finding the correct versions of libraries that will work with these older AGP and Kotlin versions is a challenge though.
5
u/craknor implements android.app.Fragment Feb 18 '26
Yesterday I've literally spent a day to upgrade an old customer project from SDK 34 to 35. I have watched an entire season of a series while doing a small change -> sync gradle -> make project -> run on device with some invalidate cache mixed in between because it did compile successfully but gave error when running on a real device. I have finally given up and went to grab some coffee, when I came back it did run without any changes 🙃
4
u/Anonymo2786 java.io.File Feb 17 '26 edited Feb 18 '26
https://www.reddit.com/r/androiddev/comments/147pod1/pain
3
u/awesome-alpaca-ace Feb 18 '26
For real
2
u/waterpoweredmonkey Feb 18 '26
If you can manage it with your setup, ensuring both build and configuration cache are correctly configured will pay dividends in the long run.
A remote build and config cache for our massive project cut build time by a crazy amount, like 80% crazy.
3
u/Opening-Cheetah467 Feb 17 '26
😂
1
u/Secure-Honeydew-4537 Feb 18 '26
🤣🤣🤣
1
u/atehrani Feb 18 '26
More like the AI agent used all that electricity to break the build
1
u/[deleted] Feb 27 '26
That's due to Gradle being sucky and Android Studio becoming a HTML/Javascript app running in a web browser.