Android的工作室一直说没有完成摇篮执行 [英] Android Studio Keep saying Failed to complete Gradle execution

查看:214
本文介绍了Android的工作室一直说没有完成摇篮执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一切精致的命令行

gradle build

但Android的工作室继续说

But Android Studio keep saying that

Failed to complete Gradle execution
Cause:
A fatal exeption has occurred. Program will exit

如果我清除所有的缓存,并重新启动一切都会好起来,但这种对话将再次轻易复出(构建失败后)。我想,增量构建链并不好,但该消息是没有帮助的。

If I clear all the cache, and restart everything will be fine, but this dialog will easily comeback again (after a build fail). I guess that the increment build chain is not good, but the message is not helpful at all.

是否有anythings我可以做,以获得更详细的信息是什么回事,为什么AndroidStudio摇篮失败了?我在这里可以把喜欢的东西 - ?在Android的工作室

Are there anythings I can do to get a more details message about what going on, why AndroidStudio Gradle failed? where can I put thing like --stacktrace in the Preferences of Android Studio?

推荐答案

如果你有像这样的机器人工作室的一个问题,那么不要担心,你缺少了一些东西在这里。

If you got a problem like this in Android studio, then don't worry about that, you are missing some thing which are here.

转到文件 - >设置 - >摇篮 - >摇篮VM选项 现在把这个值的 -Xmx256m 框,然后点击应用按钮。

Go to File-->Setting-->Gradle-->Gradle Vm Option, Now put this value -Xmx256m in the box, and hit the Apply button.

在这里,你已经解决了问题。

Here you have solved the problem.

这篇关于Android的工作室一直说没有完成摇篮执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆