【问题标题】:Android studio not running安卓工作室没有运行
【发布时间】:2015-05-08 11:28:21
【问题描述】:

我刚刚在 Android Studio 中创建了我的第一个 android 项目。它是默认的 hello word 应用程序。当我在虚拟化模拟器中运行它时,出现以下错误。请帮我解决。

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

提前致谢。

【问题讨论】:

  • 尝试使用 Genymotion 轻量级模拟器而不是默认的,在这里查看:genymotion.com/#!
  • 你电脑的内存配置是什么..?

标签: android


【解决方案1】:

您的 HAXM 不工作尝试重新安装它并将内存的初始值(建议 768MB)设置为小于计算机的 RAM。您需要减少您尝试运行的模拟器的 RAM 大小。并确保模拟器不超过您在安装 HAXM 时设置的值。如果 HAXM 设置为 768MB,请将其进一步减小并将 RAM 设置为 512MB 以使其正常工作。

Android 工作室:

  1. Tools -> Android -> AVD Manager
  2. 点击Edit this AVD
  3. 显示Advanced Settings -> Memory and Storage
  4. RAM 设置为512MB -> Finish

日食:

  1. 选择您的模拟器设备并
  2. 点击Edit编辑配置。
  3. Window -> AVD Manager
  4. Memory Options 下,您将找到RAM 选项。现在将其设置为最小值,例如 512MB

现在尝试运行您的模拟器。希望现在就可以开始了。

【讨论】:

    猜你喜欢
    • 2013-07-08
    • 2017-04-17
    • 2014-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多