Android Studio cannot find the Visual Studio emula

2019-02-02 19:06发布

问题:

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.

回答1:

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.