无法在Android Studio中运行hello world程序

时间:2015-02-03 04:55:48

标签: android

我刚安装了最新的Android Studio,开始使用Android应用开发。我的32位笔记本电脑中运行了2 GB的RAM。一旦我尝试运行基本的hello world程序,它就会给我以下错误消息。我不明白这一点。我是否安装了所有必需的软件包?是否缺少某些东西?请告诉我,我不需要更新任何硬件。

emulator: WARNING: Requested RAM size of 1536MB is too large for your environment, and is reduced to 1152MB.
emulator: device fd:592
HAX is not working and emulator runs in emulation mode
emulator: The memory needed by this VM exceeds the driver limit.
Cannot set up guest memory 'pc.ram': Invalid argument
Error accepting connection, aborting

2 个答案:

答案 0 :(得分:0)

我认为你有三个选择

第1名

使用Genymotion

第2名

开始在真正的Android设备上进行测试

3号(我更喜欢这个)

编辑您正在使用的AVD并将内存设置为512 MB

  

会减少到800 MB的帮助吗?如果是这样?我该怎么做?

第一步

Window -> Android Virtual Device Manager

第二步

Select your device and click Edit button in right part of window

第三步

In Memory Options secton find RAM parameter and set it to 512. Click OK for saving option

重新运行模拟器,它应该可以工作。

祝你好运

答案 1 :(得分:0)

点击AVD manager,它将打开已创建的avd。点击edit AVD icon作为右侧(倒数第二个)。之后点击show advance setting。从这里你可以减少RAM的大小到512 MB。祝你好运

相关问题