Execution failed for task ': app: transformClassesWithDesugarForDebug'

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 {@D:\source\Integration\app\build\intermediates\tmp\desugar_args3299583609169345231}


Execution failed for task ': app: transformClassesWithDesugarForDebug'

When you add a jar library to a project, there is such an error, without the library the error disappears ... how to be?
]
and here it is Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments


@@@
In my case, the replacement of lines helped
 sourceCompatibility JavaVersion.VERSION_1_8
 targetCompatibility JavaVersion.VERSION_1_8

on

sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7

in file build.gradle



The best option is to reassemble the library if there is a possibility.

In my experience, I can say that many problems arise from a different version
     sourceCompatibility, targetCompatibility
, as well as the use of different encoding files in the project



Write your comments



Комментариев нет:

Отправить комментарий