First a bit of background:
I’m trying to switch from Windows to Linux. But the only thing stopping me is this problem. First I switched to Solus Linux because I liked the Budgie DE. Solus didn’t have this issue with Android Studio but later I switched to Manjaro KDE like a week ago because it has more software support and customization options.
I’m working on the same projects and the same version (latest stable) of Android Studio. Windows is of course a bit slow but doesn’t have the freezing issue. On Manjaro, the IDE freezes when running gradle. I checked the RAM usage from system monitor and there are two Java processes. One of them starts with gradle and increases RAM usage until maxes out (uses around 2.4GB out of my poor 4GB RAM) and freezes everything. I can’t do anything except switching the laptop off using the power button like a monster.
What I tried:
- Deleting .idea, .gradle, .android and Android Studio config folders
- Build different projects
- Invalidate cache and restart
- Disable all plugins except the built-in ones
- Installing both JDK 8 and 11
- Installing snap package and from official website
- The RAM given to Android Studio is 1300MB on both Manjaro and Windows
- Almost every solution I could find on Linux forums and Stack Overflow
I’m a Linux noob so please go easy on me. I really wanna switch to Manjaro because Android Studio is too slow on Windows and it takes a lot of time to do my work.