Getting error while executing Android studio app - android

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.

Related

Error when launching avd

I launched the AVD Manager with Android Studio 2.2.3 in order to run the avd Nexus 5X API 25 x86 and I got these errors :
emulator: WARNING: Crash service did not start
ERROR: resizing partition e2fsck failed with exit code 1
init: Could not find wglGetExtensionsStringARB!
getGLES2ExtensionString: Could not find GLES 2.x config!
Failed to obtain GLES 2.x extensions string!
Could not initialize emulated framebuffer
Warning: requested ram_size 1536M too big, reduced to 1024M
emulator: WARNING: userdata partition is resized from 550 M to 800 M
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
emulator: WARNING: UpdateCheck: Failure: Error
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 computer has 4Gb of RAM. So what should I do to fix the errors ?
It seems that your VGA driver doesn't support OpenglES.
Turn this option off.

Android Emulator crashing with GLES 2.x config

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)

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)

Projects doesn't load in the android studio emulator

I am using Android Studio 2.1.3.My emulator works perfectly, show inbuilt apps etc but does not show the projects I created.To check whether it was by a mistake that I made,I just ran a simple hello world app but still it does not show up on the emulator.
These messages come on the bottom panel under AVD:
C:\Users\Chanaka\AppData\Local\Android\Sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5X_API_23_new
Warning: requested ram_size 1536M too big, reduced to 1024M
emulator: WARNING: VM heap size set below hardware specified minimum of 228MB
emulator: WARNING: Setting VM heap size to 384MB
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
console on port 5554, ADB on port 5555
These messages comes under App:
09/10 16:33:57: Launching app $ adb push
C:\Users\Chanaka\AndroidStudioProjects\Letstrythisone\app\build\outputs\apk\app-debug.apk
/data/local/tmp/com.example.android.letstrythisone
com.android.ddmlib.AdbCommandRejectedException: device 'emulator-5554'
not found
Error while Installing APK
How can I resolve it?

Android Studio 2.1.1 emulator error

I am learning the basics of Android programming. I tried to emulate my test app and got following error. I am emulating using API 23, Android 6.0 ( Marshmallow) and getting the same error when emulating for Nexus 5 or 4. what should I do?
Error Message:
Cannot launch AVD in emulator. Output: emulator: WARNING: VM heap size
set below hardware specified minimum of 128MB init: Could not find
wglGetExtensionsStringARB! emulator: WARNING: Setting VM heap size to
384MB getGLES1ExtensionString: Could not find GLES 1.x config! Hax is
enabled Failed to obtain GLES 1.x extensions string! Hax ram_size
0x60000000 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 adb_server_notify: Failed to establish connection to ADB server
console on port 5554, ADB on port 5555 emulator: ERROR: Could not
initialize OpenglES emulation, use '-gpu off' to disable it.
Changing the 'Graphics' option to "Software- GLES 2.0" has worked for me.

Categories

Resources