android編譯時出現org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.錯誤


android studio中使用terminal工具。在android studio最下面的底部菜單欄中有(如果沒有那cmd中進入項目根目錄后):

(1)windows中使用命令  gradlew compileDebugSource --stacktrace -info

(2)linux/mac中使用 ./gradlew compileDebugSource --stacktrace -info

linux/mac系統中出現 權限不夠,請直接在Terminal中 執行 chmod +x gradlew

查看程序中出錯的詳細信息,進行修改后重新編譯。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM