當(dāng)前位置:首頁(yè) > IT技術(shù) > 移動(dòng)平臺(tái) > 正文

Android Studio編譯失?。簅rg.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:app:proc
2021-10-20 10:36:07

問(wèn)題描述:

? ?Android Studio 編譯報(bào)錯(cuò),但是看不到具體的問(wèn)題:


org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugManifest'.
?? ?at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
?? ?at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
?? ?at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
?? ?at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
?? ?at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
?? ?at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
?? ?at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
?? ?at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
?? ?at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
?? ?at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
?? ?at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
?? ?at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)


解決方案:

命令行中執(zhí)行如下命令查看詳細(xì)報(bào)錯(cuò)(需先切換到當(dāng)前工程目錄下):

??Windows:? ? ? ?gradlew clean build --stacktrace

??MAC/Linux:? ?./gradlew clean build --stacktrace

查看詳細(xì)的報(bào)錯(cuò),發(fā)現(xiàn)存在如下報(bào)錯(cuò):

?

?

本文摘自 :https://blog.51cto.com/h

開(kāi)通會(huì)員,享受整站包年服務(wù)立即開(kāi)通 >