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

后端 未结 14 2584
误落风尘
误落风尘 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:48

    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.

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

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

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