When running jobs that start and stop several emulators in one run, stopped emulators are left in offline state.
For example, if script started and then stopped two emulators, then "adb devices" would give:
emualtor-5554 offline
emualtor-5556 offline
This may result in free ports for emulators' consoles to be exhausted.
Possible solutions:
- Investigate "adb emu kill" vs direct console access
- Maybe add ant task to "reconnect" to adb (this may or may not flush offline devices and free ports, needs investigatation)