...
set environment variables for your PC profile
Default path for windows | Default path for Linux |
---|
Default path for Mac
ANDROID_HOME | add this variable to precise the path on the sdk android | c:\Users\USER\AppData\Local\Android\Sdk | $HOME\android\ |
sdk | |||
JAVA_HOME | add this variable to set the path to the JDK. you can use the jdk installed by android studio | c:\Program Files\Android\Android Studio\jbr if jbr is not present (old version Android Studio, replace by jre) | $HOME\android-studio\jbr if jbr is not present (old version Android Studio, replace by jre) |
PATH | Complete the path by adding the path to directory containing the java executable. | %JAVA_HOME% |
\bin | $JAVA_HOME\bin |
After adding the variables, you can open a new terminal (this is important to open a new terminal to take into account the variable you have just set) and use the following command to open uiautomatorviewer :
...