Search code examples
javaandroidandroid-studioandroid-emulator

Android Studio - Issues with emulator download


I have run into a bit of a problem with my emulator for android studio. Everything was running fine yesterday until I was notified about updates and installed them. All but the emulator installed and now the emulator would not load. I am given the message: Error while waiting for device: Timed out after 300seconds waiting for emulator to come online. I went into SDK tools and tried to reinstall but I have gotten this message.

To install:
- Android Emulator (emulator)
Preparing "Install Android Emulator (revision: 26.1.4)".
Found existing prepared package.
"Install Android Emulator (revision: 26.1.4)" ready.
Finishing "Install Android Emulator (revision: 26.1.4)"
Installing Android Emulator in             
C:\Users\under\AppData\Local\Android\Sdk\emulator
An error occurred during installation: Failed to move away or delete 
existing target file: C:\Users\under\AppData\Local\Android\Sdk\emulator
Move it away manually and try again..
"Install Android Emulator (revision: 26.1.4)" complete.
"Install Android Emulator (revision: 26.1.4)" failed.
Failed packages:
- Android Emulator (emulator)

I would like to manually move the file so the emulator can finish but I don't know how exactly. This probably won't solve the issue but I would like to check it off the list of possible areas. I have also tried other methods of solving the issue but I will gladly double back to make sure that isn't a issue. Thanks in advance.


Solution

  • I found the issue. After uninstalling/reinstalling I had gotten the emulator to work. After some tinkering I noticed that I can update everything but the Intel x86 xham installer. In my case, doing so will give me a error message saying it cannot update while also uninstalling the version that was preinstalled which leads to the emulator not working. I did it twice to confirm.