Xamarin.Android Projects failed to deploy in visual studio emulator for android

Viewed 8227

I'm using visual studio 2015 update 1 with windows 10 build 10586 TH1.

also I'm using Xamarin Version 4.0.1.96.

I have created a blank Xamarin.Forms app. It deploys to Windows Phone emulators without any issue. But unable to deploy to Android Emulators.

When I start android project Android Emulator launched successfully but visual studio freeze at this step.

I've tried a lot of android emulator profiles but cannot solve the problem.

This problem only exists for Emulators and project successfully deployed on physical android device.

I have the same issue with Xamarin.Android projects.

Here is all of the text in output window:

  • 1>Starting deploy 4.5" KitKat (4.4) HDPI Phone ...
  • 1>Starting emulator 4.5" KitKat (4.4) HDPI Phone ...
  • 1>Validating emulator arguments...
  • 1>Determining if emulator is already running...
  • 1>Preparing virtual machine...
  • 1>Launching emulator...
  • 1>Emulator launched successfully

Thank you in advance for your help.

8 Answers

I had the same issue. After a long struggle i fixed it.

Sol 1 :

Check with the registry as mentioned by others.

 **HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK Tools**

Sol 2 :

In my case there is no android-SDK tool found in registry. So you have to add the registry manually here "**HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node**"

you can add it by right click on **Wow6432Node** => **New** => **key**.

Set Key name as **"Android SDK Tools"**then right click on **Android SDK Tools** =>**New** => **String Value**

Set Name as **Path** for newly added string. Then right click on **Path** => **Modify..**

Copy the Android SDK Tools path from program files and paste in Value Data.

Now the registry is created manually. You can debug the project via emulator.

Note : Don't forgot to restart the system.

Related