I'm having trouble starting my android emulator. Nothing appears to load.
Pixel 2 API 26 Android 8.0 x86.
Linux Ubuntu 16.04 LTS 64-bit.
12/10/17 2:20 PM Emulator: libGL error: unable to load driver: vmwgfx_dri.so
2:20 PM Emulator: libGL error: driver pointer missing
2:20 PM Emulator: libGL error: failed to load driver: vmwgfx
2:20 PM Emulator: libGL error: unable to load driver: swrast_dri.so
2:20 PM Emulator: libGL error: failed to load driver: swrast
2:20 PM Emulator: X Error of failed request: BadValue (integer parameter out of range for operation)
2:20 PM Emulator: Major opcode of failed request: 155 (GLX)
2:20 PM Emulator: Minor opcode of failed request: 24 (X_GLXCreateNewContext)
2:20 PM Emulator: Value in failed request: 0x0
2:20 PM Emulator: Serial number of failed request: 33
2:20 PM Emulator: Current serial number in output stream: 34
2:20 PM Emulator: Process finished with exit code 1
This question is related to
android
android-studio
android-emulator
avd
Open AVD manager and click on the drop down along side with your emulator and select the show in disk and delete the file with .lock extension. After deleted, run your emulator. That works for me.
For me there was a lack of space on my drive (around 1gb free). Cleared away a few things and it loaded up fine.
None of the solutions worked for me. I ended up downloading a different emulator image.
First I had arm64-v8a, which was giving this error. I download armeabi-v7a, which worked fine.
Unfortunately I was not able to install HAXM accelerator as organization's softwares were blocking the installation. Hence, had to go with arm.
Sometimes things need a system restart (in my case).
My issue resolved
OR
OR
Check android studio event log as it could be low storage issue.
emulator: ERROR: Not enough disk space to run AVD 'Nexus_5_API_21'. Exiting...
Android make the default avd files in the C:\Users\[USERNAME]\.android directory. Just make sure you copy the avd folder from this directory C:\Users\[USERNAME]\.android to C:\Android\.android. My problem was resolved after doing this.
I had same issue for windows , the cause of the problem was currupted or missing dll files. I had to change them.
In android studio ,
Help Menu -> Show log in explorer.
It opens log folder, where you can find all logs . In my situation error like "Emulator terminated with exit code -1073741515"
Go to folder ~\Android\Sdk\emulator
Run this command:
emulator.exe -netdelay none -netspeed full -avd <virtual device name>
ex: emulator.exe -netdelay none -netspeed full -avd Nexus_5X_API_26.avd
You can find this command from folder ~.android\avd\xxx.avd\emu-launch-params.txt
Search and download the appropriate vcruntime140.dll file for your system from the internet (32 / 64 bit version) , and replace it with the vcruntime140.dll file in the folder ~\Android\Sdk\emulator
Try step 1
If you get error about vcruntime140_1 , change the file name as vcruntime140_1.dll ,try step 1
If it runs , you can run it from Android Studio also.
I am using flutter and installed virtual device using the terminal
flutter emulator --launch {avd_name} -v
will print a more detailed output, making it easier for debugging the specific errors
Enabling the virtualization options in BIOS worked in my particular case (VDT)
Go To AVD Manager, Click On The "Down Arrow" Next to The AVD Device that is showing this error, Click on "Show on Disk". Now Delete These Two Files "Cache.img" & "cache.img.qcow2" ..
Works Perfectly Fine For me.
In AVD Manager -> Edit -> Show Advanced Settings -> Boot Options (Selct Cold boot). That fixed my issue
There might be several reasons for this.
Source: Stackoverflow.com