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

后端 未结 14 2582
误落风尘
误落风尘 2021-01-03 21:46

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?

相关标签:
14条回答
  • 2021-01-03 22:34

    I resolved with the instructions 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 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
    0 讨论(0)
  • 2021-01-03 22:34

    In my case I wasn't giving him admin permission

    0 讨论(0)
  • 2021-01-03 22:38

    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.)
    0 讨论(0)
  • 2021-01-03 22:39

    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.

    0 讨论(0)
  • 2021-01-03 22:39

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

    0 讨论(0)
  • 2021-01-03 22:43
    1. Close error window
    2. Go to gradle tab
    3. select "Gradle settings", wrench icon
    4. Search for SDK setup
    5. Select appropriate sdk for your device.
    6. Next, two times
    7. Wait for install There is all..
    0 讨论(0)
提交回复
热议问题