After migrating the Gradle version to 7.2, I get this error when running the application.
I noticed that it's pointing to Java 8 date/time feature, LocalDate.
My project already has coreLibraryDesugaringEnabled = true enabled.
After lots of searches without any result, I noticed only a simple solution as updating the coreLibraryDesugaring version will solve the problem. upgrading from 1.1.1 to 1.1.5.
Hope this saves you some time!
Can confirm that Amir's answer solved this for me. Under dependencies, bump to this: coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With