Could not find method: coreLibraryDesugaringEnabled in the gradle

What about if you use isCoreLibraryDesugaringEnabled?


You should use latest Gradle service version > 6.3 (Gradle wrapper file) and Gradle build version > 4.1.0 alpha (app.gradle file) in order to work desugaring.

Here build.gradle screenshot as described at Google guide

build Gradle settings