Android的工作室模拟器内存​​限制模拟器、内存、工作室、Android

2023-09-06 11:03:05 作者:另类小贱人

我试图运行我的第一个Android的工作室项目,但我得到这个错误信息和仿真器无法启动:

创建文件系统,4224分之11的inode和16896分之1302块 无法创建上下文0x3005 仿真器:警告:无法初始化OpenglES模拟,用软件渲染器。 仿真器:警告:1536MB的内存请求大小太大了您的环境,并减少到1152MB。 模拟器:设备FD​​:544 HAX不工作,并在仿真仿真模式运行 模拟器:需要通过该虚拟机的内存超过驾驶极限。 无法设置客户机内存pc.ram:无效的参数

解决方案 从Android的工作室开放Windows的>选择Android虚拟设备管理器 - >选择你们设备 - >单击编辑按钮 - >更改内存参数为512 MB的内存选项 - >保存并运行该模拟器将工作 否则,你可以使用Genymotion Android的虚拟机:https://www.genymotion.com/?utm_source=dlvr.it&utm_medium=twitter#!/download

I'm trying to run my first android studio project but I get this error message and the emulator doesn't start :

Created filesystem with 11/4224 inodes and 1302/16896 blocks
Failed to create Context 0x3005
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
emulator: WARNING: Requested RAM size of 1536MB is too large for your environment, and is reduced to 1152MB.
emulator: device fd:544
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

解决方案

From Android studio open Windows->Select Android Virtual Device Manager->Chose your device->Click Edit button->Change the RAM parameter to 512 Mb in the Memory Options->Save and run the emulator it will work Else you may use Genymotion Android Vm: https://www.genymotion.com/?utm_source=dlvr.it&utm_medium=twitter#!/download