Android Studio Chipmunk (2021.2.1) Java 8 library desugaring in D8 and R8 Build Error: "Unsupported desugared library configuration version"

Viewed 649

After updating my apps build gradle and dependencies (I did not update Android Studio itself), Android Studio is giving me this error: Error: Unsupported desugared library configuration version, please upgrade the D8/R8 compiler. Before the update everything compiled fine.

I am using:

  • com.android.tools:desugar_jdk_libs:1.2.0 (This was the newest version I could find)
  • Gradle plugin version 7.2.0
  • Gradle version 7.5
  • Android Studio version Chipmunk (2021.2.1)

Did I configuration something wrong? How can I fix this? Thanks in advance!

1 Answers

According to this page, the minimum version of Android Gradle plugin required is 7.3.0-beta03 to be able to upgrade the desugar library to 1.2.0, and 7.3.x is not yet available for Android Studio Chipmunk.

Related