Install Android Studio to /opt in Linux (move the 1.9 GB ~/Android/Sdk to /opt) Install Android Studio to /opt in Linux (move the 1.9 GB ~/Android/Sdk to /opt) linux linux

Install Android Studio to /opt in Linux (move the 1.9 GB ~/Android/Sdk to /opt)


It's intended to be installed per-user, not for-all-users, the main reason being so that individual users can add/update their SDK components as they see fit -- new versions of things are released pretty regularly. It would be a pain for a user to have to ask an administrator to add a missing API level or grab an update. Also, depending on just how security paranoid you are, you may not be comfortable in general running the Android SDK manager as root.

If that's not an important limitation for you, then you can copy/move the SDK directory to its final home; you don't have to run the installer to place it there. Other than for updates, the SDK doesn't write anything to its installation directory, so it should work once copied there.

Having said all that, the Android tools also have a per-user .android directory in the user's home directory. These can't be shared between users, as it contains per-user preferences and AVDs and such. Because of the latter, unfortunately this directory can get quite large.


decompress Android Studio into /opt, then just do

sudo chmod 777 /opt/

If you're the only person that uses your machine its fine.