android - 无法使用 ADB : Error Cannot connect to 127. 0.0.1 在 Hyper-V 虚拟机上调试 android 应用程序

标签 android debugging virtual-machine adb hyper-v

我正尝试在使用 Hyper-V 创建的虚拟机上调试(使用 Visual Studio)我的 android 应用程序(使用 ADB)。

通过本指南(https://bitbucket.org/chabernac/adbportforward/wiki/Home),我能够向 visual studio(安装在虚拟机中)展示我的设备(Samsung S8)作为调试设备。

问题是,当我开始从虚拟机调试到我的设备(连接在同一 wifi 网络中)时,我收到此错误:

Cannot start debugging: Cannot connect to 127.0.0.1:29308: 
No connection could be made because the target machine 
actively refused it 127.0.0.1:29309 
Couldn't connect debugger. 
You can see more details in Xamarin Diagnostic output and the full exception on logs.

在 Xamarin 诊断输出中看不到任何可以让我了解问题所在的内容。

你能帮帮我吗?谢谢

最佳答案

我认为您必须下载最新的 SDK 平台工具 Android。

关于android - 无法使用 ADB : Error Cannot connect to 127. 0.0.1 在 Hyper-V 虚拟机上调试 android 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56497897/

相关文章:

Android Studio 实时模板不工作

java - 计算我的数据和当前数据之间的秒数

Android,如何将 ListView 项目分成三部分?

visual-studio - Visual Studio 2008 远程调试器 - 未到达断点

android - 如何将obtainStyledAttributes(int []) 与Android 的内部主题一起使用

c# - 有没有办法跳过 System.Net 中的十六进制日志记录?

javascript - 哪些编码约定可以帮助 jQuery 和 Firebug 协同工作?

linux - 远程桌面 Azure Linux VM

java - 您如何检测 Java 虚拟机内存不足的情况?

linux - 虚拟机Ubuntu : UDP Packet transmission issue