adb连接夜神模拟器

1、下载安装夜神模拟器

https://www.yeshen.com/

2、下载安装adb工具

以下是adb工具包最新Google官方版下载地址:
ADB和Fastboot for Windows
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
ADB和Fastboot for Mac
https://dl.google.com/android/repository/platform-tools-latest-darwin.zip
ADB和Fastboot for Linux
https://dl.google.com/android/repository/platform-tools-latest-linux.zip

注意,需要把adb加入系统环境变量,方便使用,否则需要进入adb目录才能使用相关命令

3、连接夜神模拟器

adb connect 127.0.0.1:62001

注意,夜神模拟器需要开启USB调试模式

4、查看连接设备信息

PS C:\Windows\system32> adb devices
List of devices attached
127.0.0.1:62001 device    #这就死模拟器的设备信息

5、启动uiautomatorviewer

uiautomatorviewer

这样就可以获取设备的相关元素了

 

posted @ 2019-07-26 11:05  我吃大西瓜  阅读(574)  评论(0编辑  收藏  举报