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

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

解决方法:

  1. 将adb.exe 复制一份到uiautomatorviewer.bat 目录下(adb.exe 位于C:\Users\Administrator\AppData\Local\Android\Sdk\platform-tools\adb.exe)
  2. 修改uiautomatorviewer.bat文件最后一行(改binddir=%prog_dir%为自己的platform-tools本地路径)
    [automator篇][5]Viewer 提示connect to adb fail

相关文章: