Android Emulator crashing with GLES 2.x config - android

My android emulator is crashing with this error.
C:\Users\Rakshit\AppData\Local\Android\Sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5X_API_23
Hax is enabled
init: Could not find wglGetExtensionsStringARB!
Hax ram_size 0x60000000
getGLES2ExtensionString: Could not find GLES 2.x config!
Failed to obtain GLES 2.x extensions string!
HAX is working and emulator runs in fast virt mode.
Could not initialize emulated framebuffer
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
My emulator used to run fine till yesterday but ever since I updated my Windows 10 and Android Studio, it has stopped. I tried updating the graphics driver but that is fine as well.
I did turn off the gpu but then my emulator runs very sluggishly. I checked many posts here regarding this and have found similar solutions.
Could you please help.

Open AVD Manager
Edit this AVD (the button is at the 'actions' column)
Emulated Performance,Graphics:Software-GLE 2.0
finish the configuration and restart your virtual device again
Select 'Software-GLE 2.0' for Graphics,not select 'Automatic' or 'Hardware-GLE 2.0' (emulate graphics in software)

Related

Failed - Starting emulator for AVD 'VisualStudio_android-23_x86_phone

Using vs2107 v15.3.3, I did lunch the android emulator and get the following error message. How Can I fix that error ?
Starting emulator for AVD 'VisualStudio_android-23_x86_phone'
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
adb_server_notify: Failed to establish connection to ADB server
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-555
This video did help me to solve the issue and get the emulator and VS2017 more stable. I did match the target android version in project properties with the version stated in the "packages.config" and create an emulator at the same API version. So far so good. It does work now.

Disabling Audio on Android Emulator

I have been using Android Studio using software emulation as my then processor didn't support VT-x. Having now upgraded, the emulator doesn't boot and I get high CPU usage and the following message when loading from the AVD manager:
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
audio: Failed to create voice `goldfish_audio_in'
qemu-system-i386.exe: warning: opening audio input failed
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554
Having seen High CPU usage with Android emulator (qemu-system-i386.exe) I've changed the config file to hw.AudioInput=no but the problem remains.
I even uninstalled the Microsoft generic audio drivers and installed the ones for my motherboard. No change.
Everything still works fine with a software emulator but the extra speed I've seen on another machine makes getting this to work worth it.
Android Studio Version 2.2.3
HAXM 6.0.5
Any ideas from anyone?

Facing issue while launching Emulator in Android studio

I have installed Android studio on my system (Windows 10/64 bit).
I am getting an issue when I launch the emulator.
C:\Users\Deepak\AppData\Local\Android\Sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_24
Hax is enabled
Warning: requested ram_size 1536M too big, reduced to 1024M
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
**adb_server_notify: Failed to establish connection to ADB server**
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554
I am getting this error:
Could not automatically detect an ABD binary. Some emulator functionality will not work until a custom path TO abd is added in extended settings page
Please help in resolving this.
Android emulator eats large part of your RAM. I would suggest you to use GenyMotion which is very fast and wasy to use.Here is the download link for that
Geny motion.
Please reduce RAM size of your emulator from Android Virtual Device Manager.

Android Studio emulator could not find wglgetextensionsstringarb

When I try to start the emulator, suddenly I started getting this error
everything worked couple of days ago.
if I disable GPU acceleration then it works but very slowly.
I tried re-enabling virtualization in the bios and it worked once and now I get the same error again..
I have the latest android studio 2.2.1
I have a new graphics card GeForce.
this is the error message
Hax is enabled
init: Could not find wglGetExtensionsStringARB!
getGLES2ExtensionString: Could not find GLES 2.x config!
Hax ram_size 0x60000000
HAX is working and emulator runs in fast virt mode.
Failed to obtain GLES 2.x extensions string!
Could not initialize emulated framebuffer
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to
disable it.
SOLVED IT!
it seems to be a screen resolution issue.
I have a 4K laptop but I use 2 regular large screens and the laptop screen if off (lid closed). it seems that my graphics cards detects this and switches to the on board shitty intel card.
the solution is:
open laptop lid (so the laptop screen will be on)
start emulator
once the emulator is running, you can close the laptop lid
or use your graphics cards settings to enable hardware GPU always for AVD (if possible)

Getting error while executing Android studio app

I am new to android app
I installed android studio and trying to execute sample my application, while opening emulator getting below error.
Cannot launch AVD in emulator.
Output:
emulator: WARNING: VM heap size set below hardware specified minimum of 228MB
init: Could not find wglGetExtensionsStringARB!
emulator: WARNING: Setting VM heap size to 256MB
getGLES1ExtensionString: Could not find GLES 1.x config!
Hax is enabled
Failed to obtain GLES 1.x extensions string!
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
console on port 5554, ADB on port 5555
Could not initialize emulated framebuffer
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
Go to Tools -> Android -> AVD Manager -> click Edit and uncheck the Enable Device Frame checkbox.

Categories

Resources