Is it possible to test android app on Android VM under Virtual Box from Android studio running on host

大城市里の小女人 提交于 2021-01-29 06:50:48

问题


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.


回答1:


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/



来源:https://stackoverflow.com/questions/64668078/is-it-possible-to-test-android-app-on-android-vm-under-virtual-box-from-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!