Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting my Android device with 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 be working:

  • "adb devices" is showing my device "CB5A1N42TN device"
  • using the menu "Tools / Android / Android Devices Monitor" tools I am able to see the connected device
  • in Android Studio, I am able to deploy and run my app on the device

But in Visual Studio 2015, when executing the project I have the following error message:

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

So I suppose I should input my device somewhere, but I can't find that place in the options available. I also noticed that on the dropdown menu for the execution there is a "No devices available" message.

Thanks for your help.

like image 899
call me Steve Avatar asked May 17 '15 09:05

call me Steve


People also ask

Can I run Visual Studio on Android?

The Visual Studio Emulator for Android is included when you install Visual Studio to develop for Android, iOS, and Windows—all from one code base using familiar languages such as C#, JavaScript, and C++.


2 Answers

Ok I found the answer , hopefully it will help others.

The configuration was pointing to "X86", once I selected "ARM" then the device appeared in the list of targets I could run the app on.

like image 74
call me Steve Avatar answered Sep 23 '22 00:09

call me Steve


  1. Go to the Settings screen in your android phone
  2. Select Developer options
  3. most importantly make sure USB debugging option is checked

hopefully your USB drivers are installed and for further details go to this page

like image 41
Iman Avatar answered Sep 22 '22 00:09

Iman