将Cordova应用程序部署到已连接的设备时,无法部署到设备

问题描述:

我正在Visual Studio 2015中开发一个Cordova应用程序.我的设备已连接"HTC One-Android"设备,并且当我选择在设备上运行我的应用程序时,出现以下错误:

I am developing a Cordova app in Visual Studio 2015. I have my device "HTC One - Android" is connected to my machine and when i select to run my app on a device i get the following error:

无法部署到设备,找不到设备.

Failed to deploy to device, no devices found.

以下是针对VS 2015中错误的屏幕截图.

Below screen shot for the error in VS 2015.

要解决在Visual Studio 2015中将Cordova Apps部署到Android设备中的此错误,您需要在手机中启用开发人员选项.如果您使用的是Android设备,请按以下步骤在手机上启用开发人员模式:

To fix this error in Deploying Cordova Apps to Android devices in Visual Studio 2015, You need to enable developer options in your phone. If you are having an Android device here is how to enable developer mode on your phone:

1)单击设置.

2)单击关于.

3)单击软件信息.

4)单击更多.

5)多次点击内部编号,直到手机显示一条消息,告知您您是开发人员!

5) Tap multiple times on the Build Number until the phone shows a message that you are a developer!.

1)单击设置.

2)单击关于.

3)在内部版本号上多次点击,直到手机显示一条消息,提示您是开发人员!

3) Tap multiple times on the Build Number until the phone shows a message that you are a developer!.

完成此操作后,开发人员选项"将在设置下显示(不再隐藏),请确保将其打开并启用USB调试

Once you have done that, the "developer options" will be displayed (not hidden anymore) under settings, Make sure to open that and enable USB debugging!

享受.