I just upgrade from Giraffe to Hedgehog, and now I...
# android-studio
y
I just upgrade from Giraffe to Hedgehog, and now I got an error during the gradle project sync
Copy code
coreLibraryDesugaring configuration contains no dependencies. ... please add dependencies to coreLibraryDesugaring configuration
Any hints are really appreciated.
I downgraded the AGP
com.android.tools.build:gradle:8.1.4
seem to work again. Is there a know issue for AGP 8.2.0 in Hedgehog with core desugar lib?
m
It's been a couple weeks since I've upgraded, but I'm fairly certain I had the same or a similar issue, which I fixed by configuring core library desugaring in all modules. Even the ones that didn't use it themselves but merely depended on modules that do.
y
I fixed by configuring core library desugaring in all modules. Even the ones that didn’t use it themselves but merely depended on modules that do.
Thanks, it is exactly also the root cause of my issue. I have a module depends on another module (api) which uses desugaring. I have to add
coreLibraryDesugaring
in the module dependencies, which was not an issue for gradle 8 and AGP 8.1.4 I also now added core library in all modules in the dependency hierarchy for gradle 8.2 and AGP 8.2.0. It works now, thank you very much for this hint.
🦜 1
589 Views