Why do I have two sdk folders in the Android directory:
Contents of both sdk folders looks same
But actually they are different in size , files and folders.
Should I remove any of these folders? Are both sdk folders being used by Android?
Best Answer
A question on StackOverflow has a somewhat useful comment on this:
As of today (2015-10-01), the standard download in @RandollREVERS
solution comes with the sdk (but you can also use that link to find
the sdk standalone package). I needed to create the path variable for
it (suprised Android didn't do this for me) after downloading the
studio and then another path variable for the platform-tools directory
where the adb command is located. Each time the sdk package is
downloaded, the entire folder is enumerated under your Android install
directory (\sdk, \sdk1...).
Additionally, this link at code.google.com shows someone having an issue installing the SDK, and having 6 different folders for this:
It simply appears that each time the SDK is installed, it will create a new, incremented folder from the last.
To test this, I've just installed it:
Only one SDK folder is present after applying all the updates. As such, I'd assume only one of your folders is being used and is required, and the other is just a previous installation. To find out what is actually being used, go to Configure, then SDK Manager. In here it'll tell you the path actually being used:
I'd then try renaming the one not mentioned here to something different and see if there are any adverse effects whilst using it for a few days. If not, I'd assume it's safe to delete, or update any other paths you may have to the new one.
Edit: I have just tried reinstalling Android Studio without uninstalling the old version, and the defaults it gives me include a 1 as a suffix:
Best Answer
A question on StackOverflow has a somewhat useful comment on this:
Additionally, this link at code.google.com shows someone having an issue installing the SDK, and having 6 different folders for this:
It simply appears that each time the SDK is installed, it will create a new, incremented folder from the last.
To test this, I've just installed it:
Only one SDK folder is present after applying all the updates. As such, I'd assume only one of your folders is being used and is required, and the other is just a previous installation. To find out what is actually being used, go to
Configure
, thenSDK Manager
. In here it'll tell you the path actually being used:I'd then try renaming the one not mentioned here to something different and see if there are any adverse effects whilst using it for a few days. If not, I'd assume it's safe to delete, or update any other paths you may have to the new one.
Edit: I have just tried reinstalling Android Studio without uninstalling the old version, and the defaults it gives me include a
1
as a suffix: