visual studio - cordova - 运行 我的应用程序在 Android 设备上

visual studio - cordova - running my app on an Android device

我已遵循这些说明:

https://taco.visualstudio.com/en-us/docs/run-app-apache/#android-devices

我在我的设备中启用了 USB 调试模式。

一切似乎都很好:

虽然,当我按下 "device" 按钮时

应用构建良好(apk 已创建)但出现错误:

2>------ Deploy started: Project: v2, Configuration: Debug Android ------
2>  Querying ADB for attached devices...
2>The system cannot find the file specified
2>The system cannot find the file specified
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

我做错了什么?

在我们聊天的过程中,因为我看到您能够 运行 在管理员模式下的命令提示符中执行 adb 命令。因此,以管理员身份尝试 VS 可能会有所帮助。