美文网首页
解决Error:Execution failed for tas

解决Error:Execution failed for tas

作者: Thrilzz | 来源:发表于2016-06-03 19:55 被阅读0次

最近在Android Studio中编译APP时,gradle报了如上错误,于是google了一下,发现有很多人遇到同样的问题。最终在stackoverflow上找到解决方法,如下:

在bulid.gradle中android{……}添加如下代码:

dexOptions {

        javaMaxHeapSize "4g"

        preDexLibraries = false

 }

然后编译就通过了。

再一次,我把上面代码注释之后,编译也能通过,具体原因以后再来更新。

参考

相关文章

网友评论

      本文标题:解决Error:Execution failed for tas

      本文链接:https://www.haomeiwen.com/subject/uvhldttx.html