在Android Studio的Virtual Box上测试android应用 [英] Test android app on Virtual Box from Android studio

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

问题描述

我有一个非常具体的问题.我正在尝试与我的一个朋友一起创建一个用于教育目的的Android应用程序.问题是,我的处理器不支持VT-x,这对于使用AVD是必不可少的,而且我的Android手机已经相当老旧了,因此实际花费不多.

I have a very specific problem. I am trying to create an Android app for educational purposes, together with a friend of mine. The problem is, my processor does not support VT-x, which is essential for using an AVD, and my Android phone is considerably old so it can't really take much.

因此,我想到的一个解决方案是使用VirtualBox创建32位Android虚拟机并在那里测试我的应用程序.

Therefore, the one solution I have in mind is using VirtualBox to create a 32-bit Android Virtual Machine and test my app there.

问题是,就我所知,与实际的Android设备和AVD不同,VirtualBox Android VM没有明显的与Android Studio连接以测试每个新应用程序构建的方式.

The problem is that, unlike an actual Android device and an AVD, a VirtualBox Android VM does not have, for what my knowledge is, an obvious way of being connected with Android Studio for testing each new app build.

因此,我要提供的正是:一种方法来立即测试我在VirtualBox上创建的Android虚拟机中在Android Studio中编写的应用程序,包括有效地允许我立即测试该应用程序的所有解决方法在VM上,而不是找到一种使adb可以使用它的方法.

So, what I am asking for is exactly that: a way to immediately test the app I have written in Android Studio in my Android Virtual Machine I have created on VirtualBox, including any workarounds that effectively allow me to immediately test the app on the VM, other than finding a way to make adb work with it.

推荐答案

现在,virtualbox不能满足您的需求.

Now a virtualbox isn't an answer to your need.

这里有一些替代方法,

Genymotion http://www.genymotion.com/这是一个易于使用的android模拟器,建议您调查一下.基于virtualbox,可以轻松集成到android studio中.如果不是VT-x,则需要AMD-V proc.如果处理器不支持这些处理器,则仿真器仍然可以运行,但是您的仿真设备只能使用一个CPU.

Genymotion http://www.genymotion.com/ which is an easy to use android emulator , i suggest you look into it. based on virtualbox , can be integrated into android studio with ease . needs an AMD-V proc if not a VT-x . If the processor does not support these, the emulator still works, but your emulated device will only be able to use one CPU.

另一个选项是通过wifi的adb,它将使您无需进行保管箱步骤即可使用手机 http://forum.xda-developers.com/showthread.php?t=1685736 .为此,您将需要root用户.

The other option is adb over wifi, which will let you use your phone without doing the dropbox step http://forum.xda-developers.com/showthread.php?t=1685736. For this to work you will need root though.

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

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