Connecting my Android device using Visual Studio 2015 RC

I have compiled a sample Android project with Visual Studio 2015 (RC - Community Edition), now I would like to deploy and execute it on my connected Android device. ADB seems to work:

  • "adb devices" shows my device "CB5A1N42TN device"
  • Using the Tools / Android / Android Devices Monitor menu. I can see the connected device.
  • in Android Studio, I can deploy and run the application on the device

But in Visual Studio 2015, when I run the project, I get the following error message:

1>Error installing the package. The device '' is invalid or not running. <...> 

So, I suppose I have to enter my device somewhere, but I cannot find this place in the available options. I also noticed that there is a message β€œNo devices” in the drop-down menu for execution.

Thank you for your help.

+5
source share
2 answers

Ok, I found the answer, hope this helps others.

The configuration pointed to "X86" as soon as I selected "ARM", then the device appeared in the list of targets for which I could run the application.

+10
source
  • Go to the settings screen of your Android phone.
  • Select Developer Options
  • Most importantly, make sure USB Debugging is checked.

I hope your USB drivers are installed, and for more information, go to this page

+1
source

All Articles