Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Studio 4.0 has serious issues with Sway #5414

Closed
ardevd opened this issue Jun 3, 2020 · 13 comments
Closed

Android Studio 4.0 has serious issues with Sway #5414

ardevd opened this issue Jun 3, 2020 · 13 comments

Comments

@ardevd
Copy link

ardevd commented Jun 3, 2020

Android Studio 4.0 was released a few days ago and I'm having serious issues when using it with Swaywm.

Any dialog og popup is instantly dismissed, and no code auto completion works either which seems to be part of the same problem. This is probably more an issue with Android Studio than Sway but I'm hoping someone here might have a fix or a workaround.

@emersion
Copy link
Member

emersion commented Jun 3, 2020

Is this Sway 1.4 or Sway master?

@ardevd
Copy link
Author

ardevd commented Jun 3, 2020

Sway 1.4.

@ardevd
Copy link
Author

ardevd commented Jun 3, 2020

Also, note that everything was working fine until Android Studio was updated to v4.0

@ardevd
Copy link
Author

ardevd commented Jun 3, 2020

UPDATE: It works fine in Gnome on Wayland.

@Xyene
Copy link
Member

Xyene commented Jun 3, 2020

Please try Sway master, as two related changes went in last week. In general, this is a duplicate of #3007.

@Xyene
Copy link
Member

Xyene commented Jun 3, 2020

Actually, that's not enough. Android Studio still bundles a Java 1.8 JRE, but there are fixes included in later JRE versions. Android Studio 4.0 works correctly for me with latest Sway/wlroots master, starting with:

$ STUDIO_JDK=/usr/lib/jvm/java-11-openjdk-amd64/ /opt/android-studio/bin/studio.sh

@DiegoGuidaF
Copy link

DiegoGuidaF commented Jun 3, 2020

Actually, that's not enough. Android Studio still bundles a Java 1.8 JRE, but there are fixes included in later JRE versions. Android Studio 4.0 works correctly for me with latest Sway/wlroots master, starting with:

$ STUDIO_JDK=/usr/lib/jvm/java-11-openjdk-amd64/ /opt/android-studio/bin/studio.sh

I am using STUDIO_JDK=/usr/lib/jvm/java-14-openjdk /usr/bin/android-studio and it does fix the dissapearing popups, however it does bring in some instabilities, such as IDE seg. fault when opening an android layout (.xml) file.
Do you also experience the same issue with the java 11 amd64 sdk?

Also, I think this issue is a duplicate of #3007 (comment). Nevertheless, that issue is a bit of a catch-all for all jetbrains IDEs.

@Xyene
Copy link
Member

Xyene commented Jun 3, 2020

I didn't notice any crashes while creating a sample project (including opening some layout XML files), but I also can't say I use Android Studio for anything. I only use PyCharm and CLion daily; both bundle Java 11 and work well enough.

@Xyene
Copy link
Member

Xyene commented Jun 7, 2020

I've added a note about working around this to the wiki: https://github.com/swaywm/sway/wiki#issues-with-jetbrains-ide-popupsmenus-losing-focus

@Xyene Xyene closed this as completed Jun 7, 2020
@binzram
Copy link

binzram commented Jul 27, 2020

Thanks to @matteocrippa

This solved it for me #3007 (comment)

@zidagar
Copy link

zidagar commented Jan 26, 2021

I've tried with openjdk 11 and 14 but android studio crashes and only works with openjdk 8

@akvadrako
Copy link

I've tried with openjdk 11 and 14 but android studio crashes and only works with openjdk 8

Android Studio 4.2 uses JDK 11 by default and works much better with sway (1.5).

@giancarloerra
Copy link

giancarloerra commented Jul 11, 2022

Not working, latest Sway on Ubuntu 22.04 LTS on Wayland. I only have JDK 11, tried suggested solution, grey screen after the initial splash screen.

EDIT: fixed following this solution https://stackoverflow.com/questions/33424736/intellij-idea-14-on-arch-linux-opening-to-grey-screen/34419927#34419927

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

8 participants