Android studio only starts with sudo
After starting Android studio with sudo
, select Tools - Create Desktop Entry.
This will create an icon for Android studio and if you do a search in the dash, it will pop up in-between the other applications.
Related videos on Youtube
Crocodile
Agile product development enthusiast & business geek, maker 🛠️⚙️🚀 I build fun projects: http://screenshotflow.com, https://onthespotapp.net, s̶e̶c̶r̶e̶t̶f̶u̶t̶u̶r̶e̶p̶r̶o̶j̶e̶c̶t̶s̶ CSPO Product Management, Marketing, Hands on with Android Java/Kotlin, NodeJs, VueJs
Updated on September 18, 2022Comments
-
Crocodile over 1 year
I just installed Android Studio, but I can only start it with root permissions:
sudo ./studio.sh
otherwise it fails withError: Could not find or load main class com.intellij.idea.Main
I am not sure where to start investigating the file permissions, any ideas?
Some info:
d@d-Aspire-M5-581TG /opt/android-studio/bin $ cat /etc/*-release DISTRIB_ID=LinuxMint DISTRIB_RELEASE=17.1 DISTRIB_CODENAME=rebecca DISTRIB_DESCRIPTION="Linux Mint 17.1 Rebecca" NAME="Ubuntu" VERSION="14.04.1 LTS, Trusty Tahr" ... d@d-Aspire-M5-581TG ~ $ java -version java version "1.8.0_31" Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
Update: I created a desktop bookmark and with that it launches ok, so it's not an issue anymore. Yet, It would be great to know why it doesn't work when I try it from the terminal.
-
Dinesh over 7 yearsI did this but it does not create a desktop entry for me.