Android 多模拟器使用adb shell
16lz
2021-01-23
开启多模拟器时使用adb shell无法进入android,会报error: more than one device and emulator错误。
这个时候使用:adb devices查看加载的设备,
比如返回结果为:List of devices attachedemulator-5554 deviceemulator-5556
device在使用 adb -s [设备] [命令]执行命令,
比如:adb -s emulator-5554 shell进入shell后使用getprop命令获取系统信息其中的[net.gprs.local-ip]: [10.0.2.15]即为模拟器的ip地址这里值得注意的是,多个模拟器ip地址都是相同的。
更多相关文章
- Android 命令行编译、打包生成apk文件
- Android执行shell命令
- 【【【常用的ubuntu第三方工具及android命令(自存档)】】】二
- android 命令(adb shell)进入指定模拟器或设备
- 工作环境搭建(8) - CentOS7命令行安装Android SDK
- Android自学笔记(Android x86模拟器Intel Atom x86 System Image
- [android]android性能测试命令行篇
- 解决Android模拟器打不开的问题!...
- Android 开发者该学点Linux 命令了