I am working with an app in Android Studio. I need to use Java version 8 so I can use one library(dnsjava: https://github.com/dnsjava/dnsjava ).
When I try to use java version 8 writing this in my build.gradle (:app) file:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
I get this error: com.android.builder.dexing.DexArchiveBuilderException: Failed to process D:....\app\build\intermediates\transforms\desugar\debug\13.jar
Any ideas?