【问题标题】:Using USB device on PC in Android Studio Emulator在 Android Studio Emulator 中使用 PC 上的 USB 设备
【发布时间】:2016-08-11 11:27:29
【问题描述】:

我正在开发一个应用程序,加密狗 (USB) 设备必须通过 OTG(On-The-Go)电缆连接到支持 Android 操作系统的设备(手机、平板电脑...)。问题从这里开始。我需要在加密狗连接到手机时进行调试。不幸的是,这种情况使得将手机连接到PC和调试方法是不可能的。 (手机有1个插座,但我需要2个,一个用于将加密狗连接到手机,另一个用于将手机连接到PC进行调试

有没有办法让Android Studio Emulator可以访问PC上的USB设备?

编辑我找到了另一种方法,例如通过蓝牙将手机连接到 PC which is explained here

编辑 2: 更好更清晰的方法:安装 Genymotion 和 Virtual Box。

【问题讨论】:

    标签: debugging android-studio android-emulator


    【解决方案1】:

    另一个选项(我每天都使用)是 adb connect phone_ip

    手机应该连接到wifi(主机也是)。 网上很多资源(here is one

    莫迪。

    【讨论】:

      猜你喜欢
      • 2018-04-19
      • 1970-01-01
      • 1970-01-01
      • 2018-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-22
      • 2021-03-05
      相关资源
      最近更新 更多