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)?
24 Answers
sudo apt install appmenu-gtk2-module and restart fixes it for me, it now starts up instantly. I'm using the snap version.
Yes, startup is very slow compared to Ubuntu 19.10 for example.
I do not know if it is due to Ubuntu or Android Studio
1I'm posting an answer that is mentioned in the edit of the question, not to try to gain some stackexchange points but to get visibility on this MAJOR issue.
Yes, it's painfully slow. On my Ubuntu 20.04 installation, the splash screen takes 25 to 30 seconds to appear. Nothing is happening during this time, no CPU usage, no disk access, no download. My laptop is powerful (16GB ram, ssd, recent Intel CPU...)
And yes, if you start sudo studio.sh, the splash screen appears quasi immediately. Hahaha, the big joke!!!
I have spent hours to tweak everything and the problem persists. Android Studio is just completely bloatware. All the menus have dozens of items that I never use, the settings change at each MINOR iteration (so you are always lost), the settings are so hard to understand and to figure out (which option does what...). Personally, the list of complaints against Android Studio is endless.
Complete failure. Google, fix your stuff. Upvote this answer if you are dissatisfied with Android Studio on Ubuntu 20.04.
SO TEMPORARY FIX IS TO START 'ANDROID STUDIO' AS ROOT". Great move Google!!!
6I haven't experienced any longer startup times after upgrading to Ubuntu 20.04, it's still just a couple of seconds. But I'm running it as snap, not from a downloaded installation. Try uninstalling your current version and then:
sudo snap install android-studio --classicFor sure a better idea than running it as root...