[automator篇][5]Viewer 提示connect to adb fail

7. UIAutomatorViewer提示: Unable to connect to adb. Check if adb is installed correctly

解决,sdk升级到了25产生的问题。

解决方法:

  1. 将adb.exe 复制一份到uiautomatorviewer.bat 目录下(adb.exe 位于C:UsersAdministratorAppDataLocalAndroidSdkplatform-toolsadb.exe)
  2. 修改uiautomatorviewer.bat文件最后一行(改binddir=%prog_dir%为自己的platform-tools本地路径)
    image
原文地址:https://www.cnblogs.com/liuzhipenglove/p/6837127.html