Android-studio Selected directory is not valid home for Android SDK-ThrowExceptions

Exception or error:

I installed android studio but while selecting android SDK I am getting following error. I tried solution which is on this post but no luck. How can I solve this?

error screenshot 1

error screenshot 2

How to solve:

I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)


Try restarting the application. Close all related studio processes, then right click “run as administrator”.

You should be fine after this.


I got the same issue. You must enable the Android Support Plugin
Configuration > Plugin > Android Support Plugin. Check it.


I resolved with the instructions here,

  1. Just close current error window and let run the android studio
  2. Open the SDK manager as shown below
  3. Click on Edit SDK location as shown below
  4. Simply press next button if there is correct location for SDK you want to install there
  5. Let it be downloaded
  6. Install platform and SDK tools and
  7. Enjoy


I had the same problem but what I found is that it requires the parent folder of the following things AVD manager,SDK manager,tools,platform-tools,build-tools etc.So what you need is to find the parent directory of these things, which you might find with a name such as android-sdk or android-sdk-windows(in case you are using windows OS).Make sure the above said contents are in that folder and select it.I hope you will find this useful.


Download the SDK from

Start SDK manager and make everything up to date

Also, make sure you have set the language level to

  • 7.0 Diamonds, ARM, Multi-catch, etc


I had this problem on Linux. Apparently you need write access to some place in that directory, so I just took ownership of the entire thing:

sudo chown -R thomas:thomas /opt/android-sdk

Could be that something similar is going on on Windows as well.


If like me, a MacOs user which has installed Android Studio on my Mac and if you’ve tried everything you can think of but was still unable to set the Android SDK directory in Android Studio, follow the next steps (I know the site where I got the bundle is a freeware site but the package is the right one):

1. Download adt-bundle-mac (Android Developer Tools) from [here][1].
2. Unzip the file and browse into the unzipped folder.
3. Copy only the sdk dir to /Users/username/Library/Android 
4. Open Android Studio, the error about the SDK folder which is not set will pop up, set the path to the SDK to "/Users/username/Library/Android/sdk".
5. Now Android Studio will accept the path and you're good to go.

I wasted about 2 hours until I fixed it so I hope that by writing this answer I’ll save you some 2 hours.


The sdk folder contains the platform-tools folder.
I copied this folder and named it platforms, then it worked for me.


Steps to follow:
1. Close Android Studio.
2. Restart Android Studio and Give the path of Empty Folder .
3. Install Sdk in that folder(Sdk will automatically install and will get configure automatically.)


None of the other answers work. After the installation, immediately close Android Studio, then start it as administrator. A message might popup asking for the sdk manager location. Ignore it (Close the popup). Go to Tools > SDK Manager and click on the edit button on the right of Android SDK Location. Then click Next, next and you’re good to go. Android Studio will let you install the sdk manager.

enter image description here


Just delete(preferably permanently) all the android directories in whatever location they are present(e.g. C:\Program Files\Android, C:\users\respective user\respective android folders). Remove the installer as well(if possible). Make sure to save all your Android Studio files in some external storage (preferably).

The main thing is to get Android studio with SDK.

Now go to the android studio website and install android studio leaving all settings default. There you will also get to install the SDK and it’s linking.

It will take some time to load and will load nearly 1.5 GB files.

This worked for my case.

Leave a Reply

Your email address will not be published. Required fields are marked *