Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting "There were deployment errors, Continue?" error in visual studio 2015 xamarin android emulator

I am very new in xamarin development. Recently I install xamarin with visual studio 2015 in windows 10. I have created a simple project in xamarin android. It build perfectly but when I try to run the project in emulator getting "There were deployment errors, continue?" popup message.

Please check the image.

I have googled and do not get any proper solution. Please help me to solve the problem.

like image 649
Sadequzzaman Monoj Avatar asked Nov 19 '16 15:11

Sadequzzaman Monoj


3 Answers

had the same problem on windows 64 bit i'm using the latest android sdk build tools at this moment (v25.0.1) just installed jdk 9 and a 32 bit version of jdk(version 7) due to this link

then changed the jdk path in tools>options>Xamarin>Android settings. restart visual studio. clean and rebuild. that's it.

like image 51
ahmad eqbal Avatar answered Nov 16 '22 05:11

ahmad eqbal


You may have wrongly selected "target Android version" to version your emulator is running on.

Make sure that these two are aligning.

VS -> (right click on project) -> properties - > Android Manifest (tab) -> Target Android version (drop down)

like image 23
st35ly Avatar answered Nov 16 '22 03:11

st35ly


In my system, I'm using latest Android SDK build tools at this moment(v26.0.1) and Visual Studio 2017 Version 15.7.4.

In Regedit the Android SDK also same Visual Studio tools>options>Xamarin>Android settings. But the problem was same with me.

In my case, I changed the Package Name in Android Manifest then the problem has been solved.

enter image description here

like image 2
Ripdaman Singh Avatar answered Nov 16 '22 04:11

Ripdaman Singh