【问题标题】:Is it possible to test android app on Android VM under Virtual Box from Android studio running on host是否可以从运行在主机上的 Android Studio 在 Virtual Box 下的 Android VM 上测试 android 应用程序
【发布时间】:2020-11-03 17:59:11
【问题描述】:

有人尝试在 Android 虚拟机上测试 Android 应用吗 我已经在主机(Windows 10)上的 VirtualBox(5.2)和 Android Studio(4.1)下安装了 Android VM(9)。 遵循描述的网络设置步骤 Test android app on Virtual Box from Android studio 5年前,甚至可以通过命令行从adb(在主机上运行)连接到VM,但工作室仍然看不到设备。

【问题讨论】:

    标签: android android-studio virtualbox


    【解决方案1】:

    解决了 原来在 Windows 用户主文件夹中有一个名为 .android 的文件。 显然 Gradle 需要 .android 文件夹并且无法创建它。 Studio 日志中有抱怨,我不以为然,因为它们处于 INFO 日志级别:) 。在我创建了一个 .android 文件夹(重命名了那个 .android 文件,但还不确定后果会是什么)并同步 Gradle 之后,设备会在下拉列表中弹出。 \o/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-16
      • 1970-01-01
      相关资源
      最近更新 更多