转自:https://www.jianshu.com/p/c8581a70d1bc
解决方案:
1、打开 "E:android-sdk_r24.4.1-windowsandroid-sdk-windows ools"中的uiautomatorviewer.bat文件
2、找到 uiautomatorviewer.bat 文件最后一行

把将其中的binddir=%prog_dir%修改为 SDK 的 platform-tools所在路径(我的 SDK 路径为:E:android-sdk_r24.4.1-windowsandroid-sdk-windowsplatform-tools)。
3、修改后的最后一行为:

4、再次启动工具 UI Automator Viewer,就可以正常运行。
作者:有云的地方有蓝天
链接:https://www.jianshu.com/p/c8581a70d1bc
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。