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

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

問題描述:

? ?Android Studio 編譯報錯,但是看不到具體的問題:


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í)行如下命令查看詳細報錯(需先切換到當(dāng)前工程目錄下):

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

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

查看詳細的報錯,發(fā)現(xiàn)存在如下報錯:

?

?

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

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