安卓模拟器频繁断开连接(脱机)! [英] Android: Emulator frequently disconnected (offline)!

查看:1237
本文介绍了安卓模拟器频繁断开连接(脱机)!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候就在我推出了一个新的模拟器,对于第一次,我试图上传我的apk文件,但是我得到了模拟器:错误:用户数据的图像被另一个仿真器中止。

Sometime just after I launched a new emulator, for very first time I was trying to upload my apk, however I got "emulator: ERROR: the user data image is used by another emulator. aborting".

我发起了一个新的模拟器,并独自离开了,几分钟后,DDMS显示设备离线。

I launched a new emulator, and left it alone, several minutes later, DDMS showed "device offline".

我不得不重新启动一个新的,你知道,浪费了几分钟。
它的真正困扰我不断收到此错误,并放缓调试。
如何解决呢?

I had to restart a new one, you know, minutes wasted.
It's really bothering that I keep getting this error and slowed down debugging.
How do I fix it?

推荐答案

如果模拟器还活着,你可以告诉亚行通过TCP连接到它(这是我认为它做什么呢,只是它通常使用的模拟器类的名字,现在会得到一个IP:端口一个)

If the emulator is still alive, you can tell adb to connect to it via tcp (which is I believe what it does anyway, only it normally uses an 'emulator' class of name and would now get a ip:port one)

这已经有一段时间,因为我已经做到这一点,但我认为,如果你使用模拟器-5554,你会连接到您的开发机器的回环更高一个端口,即:

It's been a while since I've had to do that, but I think that if you were using emulator-5554 you would connect to your development machine's loopback one port higher, ie:

adb connect localhost:5555

如果它的工作原理ADB设备将显示它的日食应该把它看作是一个部署选项

If it works adb devices will show it an eclipse should see it as a deployment option

在'使用'的问题听起来像一个陈旧的锁文件也许是在撞击留下

The 'in use' problem sounds like a stale lockfile perhaps left behind in a crash

这篇关于安卓模拟器频繁断开连接(脱机)!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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