I am an android programmer, i use eclipse. i want to try android studio, thus, i download it and tried to open it.
it says that i have to put the sdk path.
What helped for me was moving the android sdk to a folder without any special characters (e.g. no "Program Files (x86)").
I solved it from here http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
1- Just close current error window and let run the android studio 2- open sdk manager as shown in below
3- Clik on Edit sdk location as 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
In intellij idea File -> Invalidate Caches/Restart
Had the same problem. I was trying to select
C:\Program Files (x86)\Android\android-sdk\platforms\android-XX
But what I actually had to do was to select android-sdk
folder.
C:\Program Files (x86)\Android\android-sdk
Then I was able to choose the API I wanted from a list of APIs that would show up.
Problem Statement selected directory is not a valid home for sdk
I have resolved from here
http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
1- Just close current error window and let run the android studio 2- open sdk manager as shown in below
3- Clik on Edit sdk location as 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 found another solution make sure that you have write access to that directory. That fixed the issue for me.