virtualbox 和 linux/windows 上的 android-x86

发布于 2024-12-21 11:55:07 字数 254 浏览 2 评论 0原文

我读到我可以在模拟器上测试 Android 应用程序,但我也可以使用 Virtualbox,这样应用程序会更快。 网上有很多关于Virtualbox的教程,但是提示我必须选择Linux on VirtualBox。 我知道Android的内核是Linux Kernel 2.6,但问题是:我也可以选择Windows吗?用Linux会更快吗?这只是一种简单的好奇心。 x86 是架构,我认为我可以在 Virtualbox 上使用 Linux、Windows 或 Mac OS X。 预先非常感谢

I have read that I can test android application on a emulator, but I could use also Virtualbox so the apps will be faster.
Online there are many tutorials on Virtualbox, but it's indicated that I must select Linux on VirtualBox.
I Know that Android's kernel is a Linux Kernel 2.6, but the question is : Can I select also Windows? With Linux will be faster? It's a simple curiosity. x86 is the architecture and I think that I can use Linux, Windows or Mac OS X on Virtualbox.
Thank you a lot in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫瑾少女 2024-12-28 11:55:07

对于Android,您需要选择Linux,因为Android的底层是Linux,这不是速度的问题,而是它是如何构建的问题。

请记住,启动虚拟机后,您需要设置 adb 端口,以便从主机操作系统进行连接:

 setprop service.adb.tcp.port 5555
 stop adbd
 start adbd

然后从主机操作系统进行连接:

  adb connect <IP_VIRTUALBOX_ANDROID>:5555

for Android you need to select Linux, because underneath Android is Linux, it's not a matter of speed, it's a matter of how it was built.

remember that after you start the virtual machine you need to set the adb port in order to connect from your host OS:

 setprop service.adb.tcp.port 5555
 stop adbd
 start adbd

and then from your host OS:

  adb connect <IP_VIRTUALBOX_ANDROID>:5555
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文