:jack_o_lantern: Spooky Gradle Build Errors! :ghos...
# android
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! 🧟‍♂️
d
NullPointerException
😱🧟‍♂️
🖤 1
j
We had a spat of ksp related build breakages recently. It would tend to arise when an import was missing or a parameter type wasn’t quite right. The compiler would typically offer no clues as to the cause. Clearing caches and cleaning would sometimes help, but not consistently and often it didn’t. Often the cause had to be manually isolated.
Copy code
java.lang.IllegalStateException: Storage for [[...]kspCaches/debug/symbolLookups/file-to-id.tab] is already registered
I haven’t seen it in a few weeks so I don’t know if something was fixed (I hope so) or if we’ve been lucky. It seemed to start after an update, but I’m not sure which one or what part of the toolchain was responsible. I suspect it might have been installed tooling such as AS or a component because its onset seemed to impact a couple of us at slightly different times.
🖤 1
d
Had this problem the other day as well. Tried to invalidate cache, gradle clean. Manually ensuring all build files in project was gone. Solution was destroying entire gradle folder (
~/.gradle/
) 🙃🙃
🖤 1
j
Ah, that was something one of the devs found helpful at least once. I’ll keep that in mind. Thanks for mentioning.
🖤 1