Tag: PR

  • Running Android Studio Flatpak in Wayland

    Wayland has been tested in Android Studio for quite some time. Despite officially not being stable yet it works very well and removed the mouse stuttering or lag I personally was experiencing on XWayland (X11).

    I created an issue and added a PR to the Android Studio Flatpak repository, however I had to close it as Wayland is not considered stable yet.

    Instead I added some instructions to the documentation on how to use Wayland instead of running Android Studio in XWayland (X11).

    By simply enabling the Wayland permission in the Flatpak advanced settings for Android Studio it will work on next launch. The same can also be achieved in the console:

    $ flatpak override --user --socket=wayland com.google.AndroidStudio

    Please note that the AVD Emulator will still continue to run on XWayland (X11) as it does not yet include Wayland Qt libraries so do not remove the default X11 permission just yet.

    Once launched you can go to Help > About and click the blue “Copy and Close” button. When pasted into the text editor you will see near the top either of these two lines:

    Toolkit: sun.awt.wl.WLToolkit (Wayland)

    Toolkit: sun.awt.X11.XToolkit (X11)