将Cordova应用程序部署到已连接的设备时,无法部署到设备 [英] Failed to deploy to device while deploying cordova app to a connected device

查看:109
本文介绍了将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!

享受.

这篇关于将Cordova应用程序部署到已连接的设备时,无法部署到设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆