支持在一台计算机上运行的Android模拟器/端口范围的最大数量是多少
基于此文档,您可以在5554到5682的偶数端口上运行多达64个仿真器支持在一台计算机上运行的Android模拟器/端口范围的最大数量是多少,android,android-emulator,Android,Android Emulator,基于此文档,您可以在5554到5682的偶数端口上运行多达64个仿真器 https://developer.android.com/studio/run/emulator-commandline The default value is 5554 for the first virtual device instance running on the your machine. A virtual device normally occupies a pair of adjacent ports
https://developer.android.com/studio/run/emulator-commandline
The default value is 5554 for the first virtual device instance running on the your machine. A virtual device normally occupies a pair of adjacent ports: a console port and an adb port. The console of the first virtual device running on a particular machine uses console port 5554 and adb port 5555. Subsequent instances use port numbers increasing by two — for example, 5556/5557, 5558/5559, and so on. The range is 5554 to 5682, allowing for 64 concurrent virtual devices.
但emulator cli的帮助却有所不同
emulator -help-port
at startup, the emulator tries to bind its control console at a free port starting from 5554, in increments of two (i.e. 5554, then 5556, 5558, etc..) this allows several emulator instances to run concurrently on the same machine, each one using a different console port number.
use '-port <port>' to force an emulator instance to use a given console port
note that <port> must be an *even* integer between 5554 and 5584 included. <port>+1 must also be free and will be reserved for ADB. if any of these ports is already used, the emulator will fail to start.
尽管亚洲开发银行的文档中有这样的描述,但我能够列出运行在5584之外的设备
$ adb devices
List of devices attached
emulator-5590 device
emulator-5690 device
我很困惑。虽然在5584之外运行模拟器对我来说很有用,但它是否受支持?我应该参考哪些文档?另一篇stackoverflow文章让我看到了最近的一篇文章,似乎它们不再限制了,所以可能文档已经过时了。也在引用的“16个并发模拟器实例”中链接文档中不再存在。另一篇stackoverflow帖子让我看到最近的一篇文章,似乎它们不再限制,因此可能文档已过时。此外,引用的“16个并发模拟器实例”在链接文档中也不再存在。
$ adb devices
List of devices attached
emulator-5590 device
emulator-5690 device