Android(安卓)多模拟器使用adb shell
16lz
2021-12-07
开启多模拟器时使用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中shape的使用
- Android
- 2010.12.10(2)——— android 使用地图
- JS与Android(安卓)WebView的简单交互 + WebView 的简单使用
- 箭头函数的基础使用
- NPM 和webpack 的基础使用
- Python list sort方法的具体使用
- 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
- android 使用html5作布局文件: webview跟javascript交互