How to Fix "SDK location not found" in Android Studio? Last Updated : 06 Jan, 2025 Comments Improve Suggest changes Like Article Like Report Google developed Android SDK which is a Software Development Kit developed by Google for the Android platform. You can create Android apps using Android SDK, and you don't need to be an expert to use it. Android SDK and Android Studio come bundled together, with Google's official integrated development environment (IDE) for the Android operating system. In this article, we see how to fix an error that is related to the main Android building component of Android Studio that is the Android SDK. The most common error related to Android SDK is "SDK location not found". This message pops up stating that the location of Android SDK was not detected when the path of SDK is assigned incorrectly. There can also be other reasons for this error message as well and we will see ways to get rid of this error.When switching from one IDE to another (Like from Eclipse to Android Studio)Method 1In this case, follow the below steps: Go to your project then go to the android directory and create a file with the following name - local.propertiesOpen the file and paste your Android SDK path like below:For Windows user - sdk.dir=C:\\users\\Username\\AppData\\Local\\Android\\sdkFor Mac user - sdk.dir = /users/Username/Library/Android/sdk (Replace Username with your PC name)Method 2In case the above procedure doesn't work then add the ANDROID_HOME variable in "Environment Variables" as C:\Users\Username\AppData\Local\Android\Sdk.Method 3In case it does not work even then, then you need to change the directory path on Project Structure as well.Close the current project and you'll see a pop-up with a dialog which will then proceed to Configure option.Configure -> Project Defaults -> Project Structure -> SDKs on left column -> Android SDK Home Path -> give the exact path as you did on local.properties and select Valid Target.Method 4A settings.gradle file might be missing from the project. Make sure that the file exists from the project you are importing. If not add the settings.gradle file with the following: include ':app'Save the file and put it in the top-level folder in your project. Comment More infoAdvertise with us Next Article How to Fix "SDK location not found" in Android Studio? N namanjha10 Follow Improve Article Tags : Android Android-Studio Similar Reads How to fix Could not find folder 'tools' inside SDK in Android? There are many IDEs available for developing android development. Many developers prefer using Eclipse as an IDE for building android applications. While using Eclipse IDE for android development many times we will get to see an error message as Could not find folder tools inside SDK folder. In this 3 min read How to Fix "Android studio logcat nothing to show" in Android Studio? Logcat Window is the place where various messages can be printed when an application runs. Suppose, you are running your application and the program crashes, unfortunately. Then, Logcat Window is going to help you to debug the output by collecting and viewing all the messages that your emulator thro 2 min read How to Set Java SDK Path in Android Studio? The Java SDK for Android is a sophisticated suite of tools for managing, monitoring, profiling, and debugging Java code written in Android Studio. But sometimes as software is unpredictable you might be caught in an error that Android Studio stopped compiling projects and says that it can't locate t 4 min read How to Change the API SDK Level in Android Studio? Generally, API level means the Android Version. This determines which version the developers are targeting their application and what is going to be the minimum level of the android version in their application will run. For setting the Minimum level and Maximum level android studio provides two ter 2 min read How to Generate Signed AAB File in Android Studio? In this article, you will learn how to create an Android App Bundle (AAB) file for an Android app. An Android App Bundle is a publishing format that includes all your appâs compiled code and resources. Your application should be digitally signed with a key in order to publish it on the Google Play s 2 min read Like