androidswtui-automationandroid-uiautomatoruiautomatorviewer

UI Automator Viewer's GUI Broken


The problem

The whole GUI is broken. No messages, no texts in the buttons, weird symbols, etc.
I think it might be the SWT (see image).

Environment

Steps to reproduce

  1. Install Java 8
  2. Install Android Studio
  3. Install Intel HAXM
  4. Run from terminal uiautomatorviewer or /Users/user/Library/Android/sdk/tools/bin/uiautomatorviewer

Enviroment variables

export JAVA_HOME_8=$(/usr/libexec/java_home -v 1.8)

export JAVA_HOME=$JAVA_HOME_8
export PATH=$PATH:$JAVA_HOME/bin

export M2_HOME=/opt/apache-maven-3.6.3
export PATH=$PATH:$M2_HOME/bin

export ANDROID_HOME=/Users/user/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/build-tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin

Maybe I'm missing something. Also, if logs are needed please tell me.
Thanks


Solution

  • If you are using dark mode, can you try switching your macOS theme to light mode? I got a Java update dialog which looked similar to your screenshot. I realized the texts were there but they were white and couldn't be seen over a white window background. I realized this when I clicked on a button.

    Java update dialog