Example-UIAutomatorviewer on mac
Dec 12, 2020
Step 1. open terminal check current JAVA version
java -version
Step 2. change version of Java 14 to Java 8 ( 1.8.0_231 )
source ~/.profile
Step 3. Navigate to UIAutomatorvierwer directory
cd ~/Library/Android/sdk/tools/bin/
One thing need to do first before run UIAutomatorviewer is run virtual device like this
- ** If error when you try step 3 , please restart virtual device and try again.