Android Virtual Device crashes on startup

I carefully followed the instruction in the Udacity course for setting up a Nexus 5 virtual device for launching my first app.  The device kept crashing as soon as I brought it up.

I did the usual googling, and eventually came across a post explaining how to start the emulator from the command line

For me, in Fedora, the emulator binary is in

/home/pjr/Android/Sdk/emulator

You can see what AVDs are available.

[pjr@localhost emulator]$ ./emulator -list-avds
Nexus_5X_API_25

You can then start it disabling the hardware acceleration like this

./emulator -avd Nexus_5X_API_25 -gpu guest

Tada!  It’s a phone.

However, I couldn’t find a way to then execute with the guest GPU setting in Android Studio.  Though the option appears, and it looks selectable, its not!

Grr.  Turns out, this is a known problem with images downloaded from the playstore (shown with the little triangle)

So I’m trying the Nexus 6 with Nougat API level 24.  Finally, I get the option to select SW rendering

And now I have a lovely Nexus 6 running Android 7.0

Leave a Reply

Your email address will not be published. Required fields are marked *