Skip to main content

Posts

Showing posts from October, 2018

Moving Android Studio from home to system folders

Android Studio takes up a lot of space with its Sdks  and virtual devices. The home folder gets full quickly. One option would be to move the entire Android Studio suite to its own folder in one of the system folders. We will use /opt folder but / usr /local can also be used (I used that before). First, create the directory structure at /opt $ su $ cd /opt $ mkdir Android The /opt/Android folder will hold the Android Studio, the Sdks, and the AVDs. $ mv /home/me/android-studio /opt/Android $ mv /home/me/Sdk /opt/Android The AVD folders are trickier as they are in the hidden folders in the user's’ home directory. $ cd /home/me/.android $ mv avd /opt/Android Now we need to link the moved folders so that Android Studio can access them. 1. Link the AVD folder as normal user Open another terminal as the regular user $ cd ~/.android $ ln -s /opt/Android/avd avd Verify that the link points to the right directory with $ ls -l lrwxrwxrwx  1 me mygr