Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 :

For windows Windows :

Code Block
languagebash
java -Xmx1600M -Dcom.android.uiautomator.bindir="%ANDROID_HOME%\tools" -cp "%ANDROID_HOME%\tools\lib\x86_64\swt.jar":;"%ANDROID_HOME%\tools\lib\*" com.android.uiautomator.UiAutomatorViewer

For linux Linux :

Code Block
languagebash
java -Xmx1600M -Dcom.android.uiautomator.bindir="$ANDROID_HOME/tools" -cp "$ANDROID_HOME/tools/lib/x86_64/swt.jar":"$ANDROID_HOME/tools/lib/*" com.android.uiautomator.UiAutomatorViewer  

...