Does anyone else have a problem using Java 8 with Android Studio 3.0?

I have a problem with Java 8 when I use

compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } 

I get an error

 Execution failed for task ':app:transformClassesWithDesugarForDebug'. > com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class 
+5
source share
1 answer

Just upgrade your build tools. It should be solved in the building tools 3.0.0-beta4.

+1
source

Source: https://habr.com/ru/post/1274213/


All Articles