Android Studio Build时遇到 TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'

昨天改了一点代码,然后点击run 开始build的时候就一直提示

Compilation failed; see the compiler error output for details.

 

 

点开Run tasks右边就写着TaskExecutionException,还去傻乎乎的搜索这是什么错,以为又是build脚本或者哪里写错了用错了库,百思不得解,后来点了下面的error才发现是代码本身有问题,有个抛出的异常没有catch。。截的图是另造的,只是记录这个问题。

一般遇到TaskExecutionException 可能就是代码写错啦

posted @ 2019-10-31 10:06  PraveZ  阅读(403)  评论(0)    收藏  举报