zoukankan      html  css  js  c++  java
  • 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:Windowssystem32> adb devices
    List of devices attached
    127.0.0.1:62001 device    #这就死模拟器的设备信息

    5、启动uiautomatorviewer

    uiautomatorviewer

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

  • 相关阅读:
    .net 中文显示乱码问题(Chinese display with messy code)
    Compare the value of entity field.
    人见人爱A^B 题解
    人见人爱A-B 题解
    全局变量
    第39级台阶 题解
    马虎的算式 题解
    做题技巧
    inline用法
    queue函数用法
  • 原文地址:https://www.cnblogs.com/bestwei/p/11248998.html
Copyright © 2011-2022 走看看