zoukankan      html  css  js  c++  java
  • 【Android】【问题解决记录】Error obtaining UI hierarchy :Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!

      

      在使用uiautomatorviewer时遇到两类Error obtaining UI hierarchy报错,分别是:

     Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!

    Error taking device screenshot: EOF

    解决方法

    尝试过很多网上查找的方法,有说是Appium影响的,最后还一言不合把Appium也卸载了,但是还是无果。其实问题根源很简单。是电脑端的adb版本过高导致 ┓( ´∀` )┏

    执行adb shell getprop ro.build.version.sdk,查看手机sdk版本为28,而电脑安装的platform-tools是29,看来adb版本过高也不可以。最后重新下载个28版本即可搞定(๑•̀ㅂ•́)و✧

  • 相关阅读:
    Linux系统配置静态ip
    爬虫之如何找js入口(一)
    asyncio动态添加任务
    关于python导包问题
    python动态添加属性
    requests模块
    反selenium关键字
    PIL模块
    openxlsx模块
    CSV
  • 原文地址:https://www.cnblogs.com/lilip/p/11089713.html
Copyright © 2011-2022 走看看