Moving android-sdk and sdk folders to another drive

怎甘沉沦 提交于 2019-12-04 07:31:36

问题


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?


回答1:


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.




回答2:


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



回答3:


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


来源:https://stackoverflow.com/questions/37726529/moving-android-sdk-and-sdk-folders-to-another-drive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!