38

Almost every time I try to open the emulator is giving me this error after a long loading pause.

I have tried to fix it by reinstalling the SDK, but no luck.

Note: I must say that I am new to Android.

enter image description here

Cristiana Dumitru
  • 405
  • 1
  • 4
  • 6

5 Answers5

46

Wiping data in Android Virtual Device Manager helped me in my case.

Tools -> Android -> AVD Manager -> Actions (triangle down) -> Wipe Data

Android Virtual Device Manager

There is also Advanced settings in virtual device's configuration (the pencil) where is a configuration of SD card and internal storage, but I didn't have to change it.

maresmar
  • 1,449
  • 14
  • 21
  • 1
    Thank you. It worked! However, it is still booting extremely slow. – Cristiana Dumitru Jun 02 '17 at 07:44
  • 1
    @CristianaDumitru You're welcome, Android emulator is terribly slow - it's always better to use a real device. Check if you use x86 (or x86_64) version of an image in the emulator, it's faster than ARM version. – maresmar Jun 03 '17 at 18:01
  • 1
    Using Visual Studio 2019 16.8.3 I had to follow similar steps but Tools > Android Device Manager > ... > Factory Reset – metoyou Dec 23 '20 at 11:35
10

Android Device Manager > Stop your device and right click > Factory Reset

emert117
  • 1,268
  • 2
  • 20
  • 38
2

My problem was two-fold. It turned out that I only needed to apply one set of fixes to address both of them!

Laptop had the OP's error, with the added "Gboard stopped" message superimposed on top of it

Dev-rig's Android Emulator was just a black screen that never changed!

How to fix

  1. Go to Tools -> Android -> Android SDK Manager
  2. Run all the pre-selected updates
  3. Go to the Tools tab
  4. Expand "Android SDK Tools" and select the latest available, or v26.x.
  5. Expand "Android SDK Build Tools" and make sure you have the ability to actually build whatever you just selected in #4
  6. Run those updates
  7. ... and Bob's your uncle!

enter image description here

kayleeFrye_onDeck
  • 6,648
  • 5
  • 69
  • 80
1

I'm sure you've already figured it out at this point, but one thing that helped me was simply right-clicking it in the Android Device Manager, and then clicking on 'Start with Factory Default.'

enter image description here

it's grayed out in mine because I've already done it Hope this helps!

Jagadesh
  • 2,104
  • 1
  • 16
  • 28
0

In recent Android Studio versions, you can achieve the same results with this

AVD Manager -> Select device -> Cooled Boot Now

or this

AVD Manager -> Select device -> Edit -> Advanced -> Boot option: Cool Boot

luchin
  • 52
  • 5