uiautomatorviewer出现Unable to connect to adb. Check if adb is installed correctly解决方法

解决办法如下:
打开uiautomatorviewer.bat,找到uiautomatorviewer.bat文件最后一行:
call "%java_exe%" "-Djava.ext.dirs=%javaextdirs%" "-Dcom.android.uiautomator.bindir=%prog_dir%" -jar %jarpath% %*
在之前添加:
set prog_dir="../../platform-tools"

你可能感兴趣的:(uiautomatorviewer出现Unable to connect to adb. Check if adb is installed correctly解决方法)