After installing Android Studio in Ubuntu, you might experience getting stuck with a blank screen instead of the Android Studio Setup Wizard. You run Android Studio from your terminal, but you still see this blank screen even if there are no warnings or errors in the terminal.
Here’s a question: What window manager are you using?
Apparently, this is a common issue for Java applications when run in non-reparenting window managers like xmonad
or dwm
. See this OpenJDK bug report for more context.
Thankfully, the solution is simple:
export _JAVA_AWT_WM_NONREPARENTING=1
/opt/android-studio/bin/studio.sh
You can also add this to the end of your .bashrc
and reload your window manager:
export _JAVA_AWT_WM_NONREPARENTING=1