Moving android-sdk and sdk folders to another drive
AndroidAndroid StudioSdkAndroid Problem Overview
My windows is on a 128GB ssd hard drive and its running out of space. the folder
C:\Users\User\AppData\Local\Android
has 2 folders android-sdk
and sdk
folders that use about 30GB of space.
Is it possible to move these folders to an external hard drive?
If it is possible what changes should I make in the android studio?
Android Solutions
Solution 1 - Android
I do the same thing. In Android Studio
go to Settings, select Appearance and Behaviour
then System Settings
then Android SDK
You can choose the SDK location at the top.
You'll need to copy/paste the files to that location to save yourself the downloading time.
Solution 2 - Android
Its very simple just copy the sdk
to wherever you want and then change the sdk
path in android studio
. For that just open the local.properties file and set the path like this:
sdk.dir=your path here
Solution 3 - Android
To keep the most used simulator in SSD drive and the others used for testing in the slow drive i created Symbolic. They are NTFS objects that appear in a folder as a sub folder but can that point to another folder on another drive.
To create then, move to C:\Users\<user>\.android\avd
and do this:
mklink /d W10.1_WXGA_Tablet_API_28.avd d:\androidSimulators\W10.1_WXGA_Tablet_API_28.avd
MDLink info here.
If using Linux based systems you can also do this with linked directories.
For windows 10 users, emulators are stored by default at here:
C:\Users\<user>\.android\avd