Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio cannot find the Visual Studio emulator

After following the blog post on using the Visual Studio Emulator for Android from Android Studio, and starting the emulator, when I am prompted to choose a running emulator, nothing shows up on the list.

I'm running Windows 10 x64.

like image 482
Edward Brey Avatar asked Aug 01 '15 15:08

Edward Brey


People also ask

How do I enable Android Emulator in Visual Studio?

Just open up the Visual Studio Emulator for Android entry in your Start Menu, hit play, and the emulator is ready to debug from any IDE. Download the standalone emulator today!

Where is the emulator folder in Android Studio?

On Windows, it's the %LocalAppData%\Android\Sdk directory. This normally expands to C:\Users\<username>\AppData\Local\Android\Sdk , although it might vary based on your system. On macOS, it's the $HOME/Library/Android/sdk directory.

Why is my emulator not working Android Studio?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

Why is my AVD not working?

In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled". Go to your BIOS settings and enable Hardware Virtualization. Restart Android Studio and then try to start the AVD again.


1 Answers

Open an admin command prompt and enter the following; then restart the emulator.

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tools" /v Path /d %localappdata%\Android\sdk

Or update the registry manually:

  1. In regedit, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node.
  2. Create a new key named Android SDK Tools.
  3. Navigate to that key.
  4. Create a new string value named Path. Set its value to the location of your Android SDK, which will be like C:\Users\YourName\AppData\Local\Android\sdk.
like image 119
Edward Brey Avatar answered Oct 15 '22 23:10

Edward Brey