简体   繁体   English

将我的Android设备与Visual Studio 2015 RC连接

[英]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. 我用Visual Studio 2015(RC - Community Edition)编译了一个示例Android项目,现在我想在我连接的Android设备上部署并执行它。 ADB seems to be working: 亚行似乎在起作用:

  • "adb devices" is showing my device "CB5A1N42TN device" “adb devices”正在显示我的设备“CB5A1N42TN设备”
  • using the menu "Tools / Android / Android Devices Monitor" tools I am able to see the connected device 使用菜单“工具/ Android / Android设备监视器”工具,我可以看到连接的设备
  • in Android Studio, I am able to deploy and run my app on the device 在Android Studio中,我能够在设备上部署和运行我的应用程序

But in Visual Studio 2015, when executing the project I have the following error message: 但在Visual Studio 2015中,执行项目时出现以下错误消息:

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. 谢谢你的帮助。

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. 配置指向“X86”,一旦我选择“ARM”,然后设备出现在我可以运行应用程序的目标列表中。

  1. Go to the Settings screen in your android phone 转到Android手机的“设置”界面
  2. Select Developer options 选择开发者选项
  3. most importantly make sure USB debugging option is checked 最重要的是确保选中USB调试选项

hopefully your USB drivers are installed and for further details go to this page 希望您的USB驱动程序已安装,有关详细信息,请转到此页面

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2015未检测到我的Android设备 - Visual Studio 2015 Not detecting my android device Visual Studio 2015 Cordova Android设备错误 - Visual studio 2015 Cordova Android Error with device Visual Studio Enterprise 2015 RC Cordova Android构建退出代码1 - Visual Studio Enterprise 2015 RC Cordova Android Build Exit Code 1 如何将物理Android设备添加到Visual Studio 2015预览版 - How to add Physical Android Device to Visual Studio 2015 Preview Visual Studio 2015 CTP 6 Android模拟器无效设备 - Visual Studio 2015 CTP 6 android emulator invalid device 使用Apache Cordova的Visual Studio 2015 RC中的“发布Android应用程序”没有执行任何操作 - “Publish Android App” in Visual Studio 2015 RC with Apache Cordova is not doing anything 我无法在Visual Studio 2015(Android)中更改textView文本 - I cannot change my textView text in visual studio 2015 (Android) 带有Xamarin的Visual Studio 2015-设备未在VS上显示 - Visual Studio 2015 with Xamarin - Device is not shown on VS Android studio 未连接到虚拟设备 - Android studio not connecting to virtual device Visual Studio 2017RC xamarin.android返回“ java.lang.OutOfMemoryError”,VS2015不? - Visual Studio 2017RC xamarin.android returns “java.lang.OutOfMemoryError”, VS2015 does'nt?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM