0

I had to install Android studio in /opt fedora 25. I don't want to run it using sudo for various reasons. Right now I'm not setting a root password because of that.

I'm not sure if I should change /opt permissions to 755 or if there's a better option.

I see the following if I try make my account password protected and run Android studio without sudo

./studio.sh 
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
Looking in classpath from com.intellij.util.lang.UrlClassLoader@6d5380c2 for /com/sun/jna/linux-x86-64/libjnidispatch.so
Found library resource at jar:file:/opt/android-studio/lib/jna.jar!/com/sun/jna/linux-x86-64/libjnidispatch.so
Trying /home/user/.AndroidStudio2.2/system/tmp/jna4343912368523517735.tmp
Found jnidispatch at /home/user/.AndroidStudio2.2/system/tmp/jna4343912368523517735.tmp
[  47553]   WARN - dea.updater.SdkComponentSource - File /home/user/.android/repositories.cfg could not be loaded. 
[  47830]   WARN - s.RepoProgressIndicatorAdapter - File /home/user/.android/repositories.cfg could not be loaded. 

enter image description here

  • 1
    Why would you need a sudo to run it? What happens if you run it without sudo? – Jakuje Jan 28 '17 at 9:42
  • 1
    There is nothing like "protection by sudo". What errors do you see? – Jakuje Jan 28 '17 at 9:45
  • @Jakuje please check my edit – Lynob Jan 28 '17 at 11:14
  • Did you try to click Next and "select an existing SDK"? – Jakuje Jan 28 '17 at 12:01
  • @Jakuje sure but it won't find it, in fact the first time I installed it, I didn't know that it was an issue, even the sdk manager won't work properly. I'm thinking of 755 permissions changing permissions isn't the best idea – Lynob Jan 28 '17 at 12:22
0

I ran sudo chown -R user:user folder on /opt/android-studio and on /root/Android/Sdk and on my project folder which I generated using android studio with root privileges.

Plus I moved /root/Android/Sdk to ~/Android/Sdk because android studio IDE cannot see the SDK if it's located in /root

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.