Home > front end >  Didn't find class "java.lang.Math8" on path: DexPathList
Didn't find class "java.lang.Math8" on path: DexPathList

Time:03-05

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.

CodePudding user response:

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!

CodePudding user response:

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'

  • Related