java -cp "/path/to/android/sdk/build-tools/ /lib/d8.jar" com.android.tools.r8.D8 --output /path/to/output/folder MyApplication.class Use code with caution.

The most reliable way to get d8.jar is through the Android Studio SDK Manager. This ensures you get a version compatible with your other build tools.

android compileOptions coreLibraryDesugaringEnabled true

Join WhatsApp Channel Join WhatsApp Channel