如何修复错误:android中的任务':app:transformClassesAndResourcesWithProguardForDebug'的执行失败?

时间:2017-12-01 09:10:29

标签: android

我正在尝试构建一个Android应用程序,它提供“错误:任务执行失败”:app:transformClassesAndResourcesWithProguardForDebug'。>作业失败,请参阅详细日志

以下是logcat的详细信息。

Warning:okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
Warning:okio.Okio: can't find referenced class java.nio.file.Files
Warning:okio.Okio: can't find referenced class java.nio.file.Path
Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
Warning:okio.Okio: can't find referenced class java.nio.file.Path
Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
Warning:okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
Warning:okio.Okio: can't find referenced class java.nio.file.Path
Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
Warning:okio.Okio: can't find referenced class java.nio.file.Path
Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
Warning:okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
Warning:there were 14 unresolved references to classes or interfaces.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:Execution failed for task :app:transformClassesAndResourcesWithProguardForDebug'.
> Job failed, see logs for details

我该如何解决此错误?

0 个答案:

没有答案