简体   繁体   中英

selected directory isn't a valid home for Android SDK - IntelliJ IDEA

I want to write apps for android but I'm having an unresolved problem by installing IntelliJ IDEA.

The installation runs good, but always when I try to select the Android SDK, I get the famous error: The selected directory is not a valid home for Android SDK

错误

I tried many ways to resolve it.

  • I read other tasks on SO but nothing helped me very well.
  • I adapted the system environment variables
  • I tried different paths (like C://User/AppData/Local/Android/SDK and C://Program Files/Android/SDK )
  • I checked the path for mistakes (like blanks)
  • I uninstalled the program (for round about three times)
  • I restarted my pc
  • I restarted the program
  • checked if all is correct (and it was. Every time.)
  • I run as administrator
  • I checked if the files are writeable

I tried Android Studio of course too, but the error occurs nonetheless.

Here are my PC Specs: - Have an Asus ZenBook - i7-7500U CPU - 8GB RAM - Win10 Home

I really hope you can help me. Thanks a lot.

In Android Studio go to File->Settings->Syestem Settings->Android SDK than click on Android SDK Location Edit button It'll auto-detect SDK location in your system if SDK not found than download window will open and from there download SDK. For your ease see the below image.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM