The selected directory is not a valid home for Android SDK

后端 未结 11 2281
南方客
南方客 2021-01-17 10:17

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.

相关标签:
11条回答
  • 2021-01-17 10:30

    What helped for me was moving the android sdk to a folder without any special characters (e.g. no "Program Files (x86)").

    0 讨论(0)
  • 2021-01-17 10:33

    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

    0 讨论(0)
  • 2021-01-17 10:37

    In intellij idea File -> Invalidate Caches/Restart

    0 讨论(0)
  • 2021-01-17 10:40

    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.

    0 讨论(0)
  • 2021-01-17 10:41

    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

    0 讨论(0)
  • 2021-01-17 10:44

    I found another solution make sure that you have write access to that directory. That fixed the issue for me.

    0 讨论(0)
提交回复
热议问题