:jack_o_lantern: Spooky Gradle Build Errors! :ghos...
# multiplatform
m
šŸŽƒ Spooky Gradle Build Errors! šŸ‘» As Halloween creeps closer, we’re summoning tales of terror from your builds! šŸ§›ā€ā™‚ļøšŸ•øļø Have you encountered any cryptic, spine-chilling build errors lately? The kind that are unhelpful or hard to understand for Gradle non-experts? šŸ•·ļøšŸ’€ We want to see the most baffling, eerie build error messages you’ve come across! Whether it’s a phantom failure or a ghostly stack trace, share your spooky stories here. šŸ–¤ Happy debugging! šŸ§Ÿā€ā™‚ļø
🤣 4
šŸŽƒ 4
l
Every time I want to get gradle to do something? Making a typo is always a horror. It's better than what it used to be, but still, is this the best we can do in 2024?
Copy code
> Could not find method mavenx() for arguments [build_ca1sjs9y9u3623l0f2khl7z6g$_run_closure1$_closure5@6406b7b8] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
šŸ–¤ 1
m
The most spooky ones are the ones where you don’t get any message at all. Situations where Gradle is so fucked up that IntelliJ is just showing lots of unresolvable imports for example, which have been resolvable just minutes before. I just had such a case yesterday. The only thing which finally helped was deleting the .gradle project folder and start IntelliJ again. Here is the helpful error message: ā€œā€ 🤨
šŸ–¤ 2
l
Invisible error messages. That's pretty spooky indeed.
šŸ–¤ 1
m
Out of nowhere, you keep getting the red build logs with some cryptic error messages which make absolutely no sense. You try everything after many failed gradle builds till you eventually fix your eyes upon the mighty ā€œInvalidate caches and restartā€ as your last resort. It’s saved you countless times in the past and you believe it can save you once again. With your last ounce of hope, you click it, checking all the boxes you see along the way, and the wait begins. The IDE returns to your screen, the gradle build is syncing, it’s taking longer than usual, surely this must mean something’s finally working. You clutch your fists with a strong sense of anticipation, it’s almost time…
Error: could not find some random gradle stuff
elmofire are you kidding me
šŸ–¤ 1
p
Just got a java.lang.NullPointerException when
minifyTaskXYZReleaseWithR8
task is executed. No logs, rerunning with --stacktrace, --debug, --info didn't help with the error logs situation either. The context, recently, some third party libs with custom obfuscation were added. My intuition says probably some R8 incompatibility due to different versions and so on. Will continue investigating but Gradle logs continue being cryptic, creepy, scary, terrifying, spooky, bloody, ghosty whatever you want to add šŸŽƒšŸ‘»
šŸ–¤ 1