Execution Failed for Task App:Transformclasseswithdesugarfordebug Error on Android Studio 3.0 Beta 2

Execution failed for task app:transformClassesWithDesugarForDebug error on Android Studio 3.0 Beta 2

Error:Execution failed for task
':app:transformClassesWithDesugarForDebug'.

com.android.build.api.transform.TransformException:
java.lang.RuntimeException:
com.android.ide.common.process.ProcessException: Error while executing
java process with main class
com.google.devtools.build.android.desugar.Desugar with arguments

Open your build.gradle and use below

android {
compileSdkVersion 26
buildToolsVersion "26.0.1"

Then Clean-Rebuild-Run .

Gradle build failed.Execution failed for task ':app:transformClassesWithDesugarForDebug'. for Android Studio 3.0.1

I had the problem with one of the Jersey dependencies. One of the dependencies required OSGI which was missing. I replaced all my Jersey dependencies with the implementation ('org.glassfish.jersey.containers:jersey-container-servlet:2.25.1'){
exclude module : 'javax.inject'
}

And the problem was solved.



Related Topics



Leave a reply



Submit