Unable to start emulator on Android Studio 2.1

三世轮回 提交于 2020-01-13 19:11:49

问题


I am unable to start my emulator on Android Studio 2.1 and getting the following error:

Cannot launch AVD in emulator.
Output:
emulator: WARNING: Increasing RAM size to 1024MB
init: Could not find wglGetExtensionsStringARB!
getGLES1ExtensionString: Could not find GLES 1.x config!
emulator: WARNING: VM heap size set below hardware specified minimum of 48MB
Failed to obtain GLES 1.x extensions string!
emulator: WARNING: Setting VM heap size to 256MB
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
Could not initialize emulated framebufferaudio: 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.

Getting same error in the console of AVD

I am trying to run with this following configurations :

My android-studio has the following details:

Any help will be appreciated.


回答1:


I face the same problem and this is how I resolved it

  1. Select your AVD manager
  2. Select your device from the list of your virtual devices
  3. Click Edit this device information
  4. Click show advance settings
  5. Change the Ram size to 1 GB and click finish
  6. launch your emulator



回答2:


Step1: Try enabling the device frame. (This Worked for me.)
Step2: If this doesn't work, either change version to lollipop or try giving Ram 2Gb.
Step3: if this still doesn't work, change graphics to Software instead of automatic.

Note:Please check on right side whether Hax file is downloaded while creating new virtual device.




回答3:


Select AVD manager Edit Your Virtual Devices Select Graphics to Software-GLES 2.0




回答4:


  • 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


来源:https://stackoverflow.com/questions/37109774/unable-to-start-emulator-on-android-studio-2-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!