The selected directory is not a valid home for Android SDK

后端 未结 11 2282
南方客
南方客 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:48

    For me the problem was I copied the previous Android Studio settings from my old computer, and then I imported them. But I didn't copy the old SDK! Probably the SDK path is also configured somewhere in the old settings. Instead of download them, Android Studio kept complaining about my SDK location. Finally, I also just copied the old SDK directory and then the problem was solved.

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

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

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

    It might occurs, if Android Studio tries to open the previous project with ".idea" directory. Well, solution is to remove that folder and .iml file too.

    Works for me.

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

    Another way this may need to be fixed is by making sure there is at least one SDK platform installed. Run in the commandline from the android-sdk folder:

    .\tools\bin\sdkmanager.bat platforms;android-XX
    

    where XX is the any Android SDK version.

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

    I found the solution myself, the answer was to run android studio as an administrator :P

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