【发布时间】:2016-01-01 22:02:25
【问题描述】:
使用VS2015 更新1 中的默认Blank Cordova 项目,我尝试将(Debug > Android > Device) 发布到Android 模拟器(Tools > Visual Studio Emulator for Android) 并收到以下错误:
Severity Code Description Project File Line Suppression State
Error Unable to deploy to Android device, no attached device was found. If you recently attached a device, you may need to wait a few seconds before it is recognized. BlankCordovaApp2
当我在弹出的部署错误窗口中单击Yes 时,我也收到以下错误:
Operation not supported. Unknown error:0x80070057
下面的运气不好。
- 我重新安装了
Android SDK Manager并更新了文件。 - 我删除并重新安装了 VS2015 社区。
- 我可以使用 adb.exe 来检查模拟器设备,它会看到该设备。
- android 模拟器似乎可以正常工作和显示。
-
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK指向正确的位置 - 重命名 CoreCon
- 运行依赖检查器(工具 > 选项 > Apache Cordova 工具)
- 我可以使用 adb install folder\location\xxx.apk 在 Android 模拟器上部署 .apk 包
有什么想法吗?
【问题讨论】:
-
是否使用 USB 连接了任何手机?
-
@Webruster 目前没有移动设备通过 USB 连接到计算机。
-
是的,那么您无法部署它,请将 sartget 设置为
ripple而不是 deploy 并尝试构建它 -
@webruster,抱歉我的问题不清楚。我可以使用波纹(
Debug > Android > Ripple - XXXX),并且可以毫无问题地推送到通过 USB 连接的设备。就我而言,我想使用适用于 Android 的 Visual Studio Emulator (Tools > Visual Studio Emulator for Android) 进行调试。我知道我可以使用 GenyMotion 或Debug > Android > Google Android Emulator,但是 VS 模拟器的集成和调试更出色。此外,我在使用适用于 Android 的 Visual Studio Emulator 方面取得了巨大成功,但它无法正常工作。我希望这能澄清我的问题。 -
@webruster。我对VS2015 + Cordova非常熟悉。你提到
set the sartget to ripple rather than the deploy。我不知道sartget是什么。你能澄清一下吗?谢谢