是否可以在主机上运行的Android Studio中的Virtual Box下在Android VM上测试android应用 [英] Is it possible to test android app on Android VM under Virtual Box from Android studio running on host

查看:89
本文介绍了是否可以在主机上运行的Android Studio中的Virtual Box下在Android VM上测试android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人尝试在Android VM上测试android应用吗?我已经在主机(Windows 10)上的VirtualBox(5.2)和Android Studio(4.1)下安装了Android VM(9).遵循以下网址所述的网络设置步骤在Android Studio的Virtual Box上测试android应用5年前,甚至可以通过命令行从adb(在主机上运行)连接到VM,但是Studio仍然看不到该设备.

Did anybody try to test android apps on an Android VM I've installed Android VM (9) under VirtualBox (5.2) and Android Studio (4.1) on a Host machine (Windows 10). Followed the network setup steps described at Test android app on Virtual Box from Android studio 5 years ago, and can even connect to the VM from adb (running on the host) in command line, but the studio still cannot see the device.

推荐答案

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

Resolved it It turned out there was a file named .android in the Windows user home folder. Apparently Gradle requires .android folder there and couldn't create it. There were complaints in the Studio log that I shrugged off because they were on INFO log level:) . After I created a .android folder (renamed that .android file and not sure yet what the consequences would be) and synced Gradle the device popped up in the dropdown list. \o/

这篇关于是否可以在主机上运行的Android Studio中的Virtual Box下在Android VM上测试android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆