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
Httpentity Is Deprecated on Android Now, What's the Alternative
Generating Google Map Release API Key
Taking Screenshot Programmatically Doesnt Capture the Contents of Surfaceview
Activate an Application When a Power Button Is Clicked
Programmatic Screencapture on Mobile Device
Android Studio How to Run Gradle Sync Manually
Need to Disable Expand on Collapsingtoolbarlayout for Certain Fragments
How to Implement Image Gallery in Gridview in Android
Trying to Uninstall_Shortcut But Shortcut Won't Go Away
Get the Distance Between Two Locations in Android
How to Get the Selected Item from Listview
How to Remove a Contact Programmatically in Android
How to Get Current Buildtype in Android Gradle Configuration
Executing Multiple Asynctask's Parallely
Call to 'Getdrawingcache' Returns Null When Scroll Is Enabled
Android: How to Draw a Border to a Linearlayout