Ubuntu – Ubuntu 20.04 android studio slow startup

20.04android-studio

With the Ubuntu 20.04 released, I thought I'd switch from Windows for Android app development, So I did a fresh install on my SSD, then installed Android Studio from the snap store, but found that it takes a lot of time to startup compared to Windows, which I expected to be faster. On Ubuntu 20.04 android studio starts in a full 30 seconds while on Windows it only takes 5-7 seconds, so I decided to uninstall it, and downloaded from the official site, but the result was the same. Am I doing something wrong or what? cause I saw in other videos it starts just as fast on Windows, maybe a Ubuntu 20.04 issue I don't know please help if you have any insights

Edit: I tried to run the studio.sh script using sudo now the problem is fixed, but I do not find this solution satisfactory, I wanted it to work like normal without having to run as the root user, and having the SDK in the /root/Android directory.

Do anybody knows why running it as root speeds up the startup time(5 seconds)?

Best Answer

sudo apt install appmenu-gtk2-module and restart fixes it for me, it now starts up instantly. I'm using the snap version.

Related Question