1

I have successfully installed Android studio on my Ubuntu 14.04 LTS running as a guest in VMWare 10 on my windows 10. But when I check for updates it shows me some updates available and a message below which says :

Studio does not have write access to /home/aman/Downloads/android-studio. Please run it by a privileged user to update.

I am newbie in Linux environment, I know I have to give some read/write permission to studio but I don't know how.

P.S. I tried running it with the following command:

sudo ./studio.sh

it gives me an error saying :

tools.jar seems to be not in studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE
Aman Grover
  • 133
  • 1
  • 7

2 Answers2

2

You have Android Studio installed in your Download folder? Interesting... o_O

For your learning curve, correct the permissions:

sudo chown -R "$USER":"$USER" ~/Downloads
sudo chmod -R u+w ~/Downloads

After that, delete your installation :P and use this answer to install again.

A.B.
  • 89,123
  • 21
  • 245
  • 323
0
sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

sudo apt-get install oracle-java8-set-default
muru
  • 193,181
  • 53
  • 473
  • 722
Escobar
  • 1
  • 1
  • Not sure what this will heelp. – TheWanderer Jan 27 '16 at 02:01
  • "WebUpd8 team's PPA has been discontinued with effective from April 16, 2019" https://askubuntu.com/questions/634082/how-to-install-android-studio-on-ubuntu/634085#634085 – Simon Aug 04 '20 at 04:54