开发者

multiple emulators with ADB

开发者 https://www.devze.com 2023-03-24 12:48 出处:网络
I\'m testing a multi-user Android APK that I\'m developing. For my test requirements I have to run 4 different emulators with 2 physical devices, total of 6 devices running my APK at the same time. I\

I'm testing a multi-user Android APK that I'm developing. For my test requirements I have to run 4 different emulators with 2 physical devices, total of 6 devices running my APK at the same time. I'm using android X86 emulator running in Virtualbox machines, working good with no issues at all compared with my tablet devices.

My problem is when I try to connect with ADB to more than 2 emulators, Eclipse just can't handle it, all 开发者_开发百科of a sudden my ADB server quits and restart again, sometimes just can't recover . If I connect and disconnect from all emulators and physical devices, mananing always 2 at the same time, everything runs ok, but when I try to connect third, adb crash.

Any pointers on this odd behaviour of ADB?

My development environment its Eclipse Galileo V 3.5.2 R35 with Java SE 1.6.0_26 and Android SDK with platform 2.2


I've found that what really stabilize things is to ALWAYS have an Android virtual devicer connected to ADB. No matter what you do with other ABD devices connected, ADB hardly crash in this way.

I've tested with 2 physycal devices and 5 Android x86 emulators running in VirtualBox, connected in ADB server together with a virtual device. I could only put 4 devices connected at the same time, more than that crashed server and needs an Eclipse restart to put all things back to work.

In short, keep always an Android virtual device connected to ADB server.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号