[英]Errors in launching Emulator in Android Studio
I am getting the following error while launching the Android virtual device manager: 启动Android虚拟设备管理器时出现以下错误:
> C:\Users\yates\AppData\Local\Android\sdk\tools\emulator.exe -netdelay
> none -netspeed full -avd Nexus_5_API_23_x86 <br/> init: Could not find
> wglGetExtensionsStringARB! <br/> emulator: WARNING: Classic qemu does
> not support SMP. The hw.cpu.ncore option from your config file is
> ignored.<br/> getGLES1ExtensionString: Could not find GLES 1.x
> config!<br/> emulator: device fd:704<br/> Failed to obtain GLES 1.x
> extensions string!<br/> HAXM is working and emulator runs in fast virt
> mode<br/> Could not initialize emulated framebufferCannot set up guest
> memory 'pc.ram': Invalid argument
Please do not tell me to 请不要告诉我
un-check 'GPU HOST': Already done that. 取消选中'GPU HOST':已经完成了。 It says it's about the screen resolution.
它说这是关于屏幕分辨率。 And it keeps giving me the same error even when I change screen resolution.
即使我改变屏幕分辨率,它也会一直给我同样的错误。
install the HAXM: I have already done that. 安装HAXM:我已经做到了。
to update my graphic drivers: I don't have any additional graphic cards in my system. 更新我的图形驱动程序:我的系统中没有任何其他图形卡。 'STANDARD VGA GRAPHIC ADAPTER' is the only thing installed and it's up-to-date in my system.
'标准VGA图形适配器'是唯一安装的,它在我的系统中是最新的。
Emulator Configuration: 仿真器配置:
Name: Nexus_4_API_23
名称:Nexus_4_API_23
CPU/ABI: Google APIs Intel Atom (x86)
CPU / ABI:Google API Intel Atom(x86)
Path: C:\\Users\\yates.android\\avd\\Nexus_4_API_23.avd
路径:C:\\ Users \\ yates.android \\ avd \\ Nexus_4_API_23.avd
Target: Google APIs (API level 23)
目标:Google API(API级别23)
Skin: nexus_4
皮肤:nexus_4
SD Card: C:\\Users\\yates.android\\avd\\Nexus_4_API_23.avd\\sdcard.img
SD卡:C:\\ Users \\ yates.android \\ avd \\ Nexus_4_API_23.avd \\ sdcard.img
Snapshot: no
快照:没有
hw.dPad: no
hw.dPad:没有
runtime.network.speed: full
runtime.network.speed:完整
hw.accelerometer: yes
hw.accelerometer:是的
hw.device.name: Nexus 4
hw.device.name:Nexus 4
vm.heapSize: 64
vm.heapSize:64
skin.dynamic: yes
skin.dynamic:是的
hw.device.manufacturer: Google
hw.device.manufacturer:谷歌
hw.gps: yes
hw.gps:是的
hw.audioInput: yes
hw.audioInput:是的
tag.id: google_apis
tag.id:google_apis
hw.camera.back: none
hw.camera.back:无
hw.mainKeys: no
hw.mainKeys:没有
AvdId: Nexus_4_API_23
AvdId:Nexus_4_API_23
hw.camera.front: none
hw.camera.front:none
hw.lcd.density: 320
hw.lcd.density:320
runtime.scalefactor: auto
runtime.scalefactor:auto
avd.ini.displayname: Nexus 4 API 23
avd.ini.displayname:Nexus 4 API 23
snapshot.present: no
snapshot.present:没有
hw.device.hash2: MD5:6930e145748b87e87d3f40cabd140a41
hw.device.hash2:MD5:6930e145748b87e87d3f40cabd140a41
hw.ramSize: 864
hw.ramSize:864
hw.trackBall: no
hw.trackBall:没有
hw.battery: yes
hw.battery:是的
hw.sdCard: yes
hw.sdCard:是的
tag.display: Google APIs
tag.display:Google API
runtime.network.latency: none
runtime.network.latency:无
hw.keyboard: yes
hw.keyboard:是的
hw.sensors.proximity: yes
hw.sensors.proximity:是的
disk.dataPartition.size: 200M
disk.dataPartition.size:200M
hw.sensors.orientation: yes
hw.sensors.orientation:是的
avd.ini.encoding: UTF-8
avd.ini.encoding:UTF-8
hw.gpu.enabled: no
hw.gpu.enabled:没有
You need to reduce the RAM size of your emulator. 您需要减小模拟器的RAM大小。 Even if you have enought memory it is recommended to have 1GB or less than 1GB memory.
即使您有内存,建议使用1GB或小于1GB的内存。 As it automatically allocates 864MB edit your emulator in the AVD manager and reduce the AVD's RAM.
因为它会在AVD管理器中自动分配864MB编辑您的仿真器并减少AVD的RAM。
Open AVD Manager and select your device and click "Edit" button. 打开AVD Manager并选择您的设备,然后单击“编辑”按钮。
Then in "Memory Options" find the RAM parameter and set it to 512 or 864 for example. 然后在“Memory Options”中找到RAM参数并将其设置为512或864。 Click OK to save the current configuration and restart your application or AVD.
单击“确定”保存当前配置并重新启动应用程序或AVD。
You also should not provide a RAM size for your emulator which exceeds your HAXM allocated memory. 您也不应为仿真器提供超出HAXM分配内存的RAM大小。 Since you are running the emulator in HAXM mode it will run faster than normal.
由于您在HAXM模式下运行模拟器,因此它将比正常运行更快。 So you don't have to worry about your devices' RAM.
所以你不必担心你的设备的RAM。
In Android Studio: 在Android Studio中:
Open Avd manager 打开Avd经理
Edit the settings for the AVD configuration 编辑AVD配置的设置
Click in the "Show Advanced Settings" 单击“显示高级设置”
In the "Memory and Storage" section reduce the RAM size 在“内存和存储”部分中减小RAM大小
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.