我已经创建了一个目标Android 4.4的模拟器,如果我启动模拟器获得以下异常并且没有看到模拟器。请帮我模拟器搞定。
C:\android-folder\android-sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5X_API_19
emulator: WARNING: VM heap size set below hardware specified minimum of 96MB
init: Could not find wglGetExtensionsStringARB!
getGLES1ExtensionString: Could not find GLES 1.x config!
emulator: WARNING: Setting VM heap size to 384MB
Failed to obtain GLES 1.x extensions string!
Hax is enabled
Hax ram_size 0x20000000
HAX is working and emulator runs in fast virt mode.
Could not initialize emulated framebufferWarning: requested ram_size 1536M too big, reduced to 512M
audio: Failed to create voice `goldfish_audio_in'
qemu-system-i386.exe: warning: opening audio input failed
console on port 5554, ADB on port 5555
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
emulator: WARNING: ./android/metrics/metrics_reporter_toolbar.cpp:164: Can't upload usage metrics: Error
emulator: WARNING: ./android/metrics/metrics_reporter_toolbar.cpp:164: Can't upload usage metrics: Error
emulator: WARNING: ./android/metrics/metrics_reporter.cpp:142: Failed to get a writable, unused path for metrics. Tried: C:\Users\murali.athmarao\.android\avd\metrics\metrics.7408.yogibear
系统配置:
Windows 7 32 bit.
Ram size is 2GB
Graphics card is Standard VGA Graphics Adapter
答案 0 :(得分:0)
1)无法初始化模拟的framebufferWarning:请求ram_size 1536M太大,减少到512M - 你必须配置你的模拟器以减少ram大小 2)模拟器:错误:无法初始化OpenglES仿真,使用' -gpu off'禁用它 - 尝试禁用它。 3)尝试制作自己的模拟器项目
答案 1 :(得分:0)
似乎您的计算机(更具体地说是Windows 7)不允许RAM大小超过512到虚拟机请求framebufferWarning: requested ram_size 1536M too big, reduced to 512M
。
要解决此问题,您需要将虚拟设备配置为仅询问512M内存。
TL; DR - 如何解决 -
1.转到工具 - > Android - > AVD经理。
2.单击左下角的“创建虚拟设备”
3.选择所需的设备 - >选择您想要的API(版本)级别(如Marshmallow)
4. Show advance setting
5.在Memory and Storage
选项卡内,将RAM设置为500。
答案 2 :(得分:0)
我的Android工作室现在可以在禁用-gpu off并减小RAM大小时立即运行。
我已通过AVD-> Edit or create new virtual device -> Graphics ->software-GLES 2.0