The issue is reported in Google's issue tracker here:
https://issuetracker.google.com/u/1/issues/72872257
According to the comments, the issue should be fixed in 3.2.0-alpha09.
As a workaround, it's also possible to update gradle.properties with:
android.enableD8.desugaring=true