No Android SDK found - Android Studio - Missing SDK

本小妞迷上赌 提交于 2019-12-11 18:27:42

问题


I am a beginner in android development. I have installed Android Studio but when I start Android Studio it shows "No Android SDK found" screen every time.

Please guide me if I miss anything during installation.

Thanks


回答1:


First of all, check the SDK path like others state in comments, by going to: File -> Project Structure -> SDK location

If your path is correct, check if your downloaded SDK version matches what you are using in project, you can find it in your app gradle file:

android {
  compileSdkVersion 26
  targetSdkVersion 26.0.2
}

Hope it helps!




回答2:


Try to make Build -> Clean Project and Tools -> Android -> Sync Project with Gradle Files




回答3:


The SDK folder was empty for C:\Users\userID\AppData\Local\Android\SDK

For displaying hidden AppData or Local subfolder: Tools, Folder Options, View, Advanced Settings, Files and Folders, select option Show hidden files, folders, and drives.

The SDK folder should contain the following subfolders:

  • build-tools
  • emulator
  • extras
  • patcher
  • platforms
  • platform-tools
  • sources
  • tools

Downloaded the zip file to create the tools subfolder from link, sdk-tools-windows-4333796.zip of section, Command line tools only, Platform Windows within URL, https://developer.android.com/studio Zip file name: sdk-tools-windows-4333796.zip Copied this zip file into C:\Users\userID\AppData\Local\Android\SDK Unzipped this file, which created tools subfolder.

Downloaded zip file to create the platform-tools subfolder from the link, Download SDK Platform-Tools for Windows, within URL, https://developer.android.com/studio/releases/platform-tools.html Zip file name: platform-tools_r28.0.2-windows.zip Copied this zip file into C:\Users\userID\AppData\Local\Android\SDK Unzipped this file, which created platform-tools subfolder.

Open Android Studio and follow prompts. Other subfolders will be created automatically.



来源:https://stackoverflow.com/questions/49982265/no-android-sdk-found-android-studio-missing-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!