Android的工作室:未能完成摇篮执行,原因是空的摇篮、原因、工作室、Android

2023-09-12 01:57:45 作者:一场一个人的私奔

当我试图运行的Andr​​oid模拟器,我得到以下错误屏幕。当我出口的apk文件同样会发生。当我去那里的apk将被保存的目录,apk文件不存在。

When I try to run an Android emulator, I get the following error screen. The same occurs when I export the apk. When I go to the directory where the apk will be saved, the apk file is not there.

感谢您, 克里斯托夫

Thank you, christophe

推荐答案

我有同样的问题,这个问题将通过执行下面的步骤。

I had the same issue, this problem will be fixed by doing the below step.

文件 - >设置 - > Gradle->摇篮VM选项

File->Setting->Gradle->Gradle Vm Option

有关Android的工作室1.2

For Android Studio 1.2

文件 - >设置 - >构建,部署和放大器; Execution->构建工具 - > Gradle->摇篮VM选项

File->Setting->Build, Deployment &Execution->Build Tools->Gradle->Gradle Vm Option

,现在把在框中该值 -Xmx256m ,并点击应用按钮。

, Now put this value -Xmx256m in the box, and hit the Apply button.