调试使用虚拟机VMWare等/ VirtualBox的? [英] Debugging using a virtual machine like VMWare/VirtualBox?

查看:312
本文介绍了调试使用虚拟机VMWare等/ VirtualBox的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序,但美联储行动的我的模拟器的性能 我有一个 Android的PC版同时安装在VM用品及虚拟框

我可以用它作为模拟器?如果是这样,怎么样?我怎样才能连接亚洲开发银行即可运行PC Android的虚拟机?

我在一些论坛上使用此看到了,但我的虚拟机机器人有没有具体的IP。

我如何连接呢??

解决方案

解决方法:

我会强烈建议使用Android x86的堂妹了很多很多倍,比Android模拟器与Android的x86 4.2你可以更快的安装和使用任何应用程序这一点,并使用谷歌播放同步您的帐户,你用平板电脑做

与工作最新的Andr​​oid X86 4.2果冻豆和虚拟盒

我已经找到不同的方式与互联网和亚洲开发银行连接

步骤:1选择适配器

案例1:只有互联网{NAT适配器}

最简单的方法就是使用NAT的适配器,将直接连接到互联网,如果主机连接到互联网,但你不会得到这个设置ADB连接 在这里,你会得到公网IP,所以你不能连接到电脑主机

案例2:只有亚洲开发银行{仅主机适配器}

最简单的办法是只使用仅主机适配器

注意:默认主机只有适配器可能无法正常工作,由于DHCP服务器设置或者创建新的 HostOnlyAdapter 或运行 DHCP服务器现有适配器()

案例3:对于这两个亚洲开发银行和互联网{桥适配器}

您将不得不照顾在这种情况下。

如果您使用的是局域网的互联网连接,你必须使用桥接适配器与你的以太网卡,它会给你的本地IP和虚拟机将使用主机连接到互联网。

另外,如果你是与WiFi只是做同样的选择WiFi适配器

对于其他类型的连接,你应该用同样的方式去

步骤:2连接亚行

要检查IP地址只是preSS <大骨节病> ALT + F1 {控制台窗口}要切换回图形视图preSS <大骨节病> Alt + F7 ]

您会看到控制台窗口中键入加上netcfg

它会显示IP地址

现在你主机上运行命令提示符下移动到亚行的目录前进 类型

  ADB连接{IP地址}
 

示例

  

ADB连接192.168.1.51

注意:如果亚行未运行或响应,你可以做以下

  ADB杀死服务器

亚行启动服务器
 

您可以检查连接到ADB设备

  ADB设备
 

I am developing an Android application but fed-up of performance of My emulator I do have a Android PC version installed in both VM-ware and Virtual Box

Can I use it as emulator? If so, how? How can I connect ADB to a virtual machine running PC Android?

I saw in some forum to use this but my VMs android having no specific IP.

How to i connect it??

解决方案

Solution:

I would highly recommend to use Android x86 coz it many many times faster than Android emulator with Android x86 4.2 you can install and use any application with this and use "Google play" synch with your account as you do it with tablet

Working with latest Android X86 4.2 Jelly Bean and Virtual Box

I have found Different ways to connect with Internet and adb

Step: 1 Selection of Adapters

CASE 1: Only Internet {NAT Adapter}

The easiest solution is just use NAT adapter that will directly connect you to internet if host is connected to internet but you won't get the adb connection with this setup Here you will get Public ip so you can't connect to Host computer

Case 2: Only adb {Host Only Adapter}

The easiest solution is just use Host Only Adapter

Note: The default Host Only adapter may not work due to DHCP server settings either create new HostOnlyAdapter or run DHCP server for existing Adapter()

Case 3: For both adb and Internet {Bridge Adapter}

You will have to take care in this case.

If you are using LAN for internet connection you shall use Bridge Adapter with your Ethernet card it will give you local ip and Virtual Machine will connect to Internet using host machine

Alternatively if you are with Wifi just do the same by selecting the Wifi adapter

For other type of connection you shall go with the same way

Step: 2 Connection with adb

to check the ip Address just press Alt+F1 {for console Window} [To switch back to Graphics view press Alt+F7 ]

you will see the console window type netcfg

it will show the ip address

Now move on to you host run command prompt move to adb directory type

 adb connect {your ip address}

Example

adb connect 192.168.1.51

Note: if adb is not running or responding you can do following

adb kill-server

adb start-server 

you can check devices connected to adb

adb devices

这篇关于调试使用虚拟机VMWare等/ VirtualBox的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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