The project that just went down, actually compile error, RuntimeException means that the code is not wrong, I have been doing it for a day, and I have been looking for it on Baidu, but I still can't find a solution, and finally solved it tonight.
Paste the error log below:
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 {@E:\ZZH_Project\Pat_android\app\build\intermediates\tmp\desugar_args4935976097860045766}
Feeling in the fog
Cancel Use embedded JDK (recommented), and then select your own jdk directory, Rebuild, my problem is solved, I hope it will be useful to everyone.