Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 1073741819 when launching AVD in Android Studio

I've been playing around with settings of OpenGL renderer in AVD.

enter image description here

Once I finished, closed the editor and tried to launch the virtual device, the following error with code 1073741819 was thrown.

ERROR: Invalid GPU mode 'angle9', use one of: host swiftshader_indirect. If you're already using one of those modes, the emulator installation may be corrupt. Please re-install the emulator.

However, there is no possibility switching the settings back. Manualy editing config files of the virtual device wont help anyway. Neither reinstalling or deleting Android Studio at all.

like image 615
jmeinlschmidt Avatar asked Jun 06 '19 23:06

jmeinlschmidt


People also ask

Why my AVD is not working?

android\avd . However, if the AVD name ( <name> ) has unicode, the emulator cannot launch the AVD properly using this default location. To solve this issue, update the emulator (Tools > SDK Manager); this issue is fixed in Emulator 31.3. 6 and higher.

Why is my AVD Manager not working?

SDK Build Tools are not installed You look at the build tab at the bottom of the screen, it will display the error message and option to install the Build tools. Install it and you should be able to see the AVD Manager. Another way is to go to the SDK Manager. Under SDK Tools you will find the Android SDK Build tools.


1 Answers

The only solution came from following steps:

1. Locate the emulator location

Hit the SDK tools icon in order to get the exact location

enter image description here

2. Launch emulator manually

> cd C:\Users\jakub.meinlschmidt\AppData\Local\Android\Sdk\emulator
> emulator -list-avds
Nexus_S_API_29
> emulator -avd Nexus_S_API_29 -gpu host

If your virtual device is not appearing the list, try to reboot your computer (worked for me).

3. Open AVD Editor

Once you successfully launch your virtual device, navigate to the OpenGL settings (as shown in the first picture) and switch to a different option.

like image 96
jmeinlschmidt Avatar answered Sep 22 '22 13:09

jmeinlschmidt