1. which adb 找到adb的位置,在/usr/local/bin/adb
2. 通过ls -l找到/usr/local/bin/adb的软链接/usr/local/Caskroom/android-platform-tools/34.0.4/platform-tools/adb
3. 回到/usr/local/Caskroom/android-sdk/4333796/tools/bin目录,修改uiautomatorviewer.bat 文件最后一行,把将其中的binddir=%prog_dir%修改为 SDK 的 platform-tools所在路径
exec "${javaCmd}" $javaOpts -Djava.ext.dirs="$frameworkdir" -Dcom.android.uiautomator.bindir="/usr/local/Caskroom/android-platform-tools/34.0.4/platform-tools" -jar "$jarpath" "$@"