Skip to content
Related Articles

Related Articles

Improve Article

Fix “SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable” in Android Studio

  • Difficulty Level : Easy
  • Last Updated : 27 May, 2021

SDK is a Software Development Kit. SDK brings together a group of tools that enable programing for mobile Applications such as Android, IOS. You can download SDK from HERE and then Extract/put it in the default folder if there is no such then make it. Default Path of SDK in PC is:

Windows:

sdk.dir = C:\Users\UserName\AppData\Android\sdk

UserName above is the name of your PC. If you are not able to see AppData Folder then you have to change the View settings of File Explorer and mark Hidden Items.

Step 1. Go to the top of File Explorer and open drop-down



Step 2. Now go to View > Hidden Items

If this doesn’t work, Add ANDROID_HOME in Environment Variables. Go to System Properties -> Environment Variables -> Add Variable -> put Variable Name and Value.

Step 1. Open System Properties

Step 2. Select New and Insert Variable and Location

Step 3. Add Variable name: ANDROID_HOME and value: as your SDK path. If your path is something else not in C Drive you have to add that. Make sure you enter the correct path UserName below is the name of your PC. and press OK. 

Now check the SDK location in your Android Studio and follow these steps.

Step 1. Go to the FILE > SETTINGS

Step 2. Search for SDK and place your SDK-LOCATION. **MAKE SURE YOU HAVE ADDED CORRECT PATH**

***IF YOUR LOCATION OF SDK IS NOT C DRIVE THEN YOU HAVE TO ADD CORRECT LOCATION***

Want a more fast-paced & competitive environment to learn the fundamentals of Android?
Click here to head to a guide uniquely curated by our experts with the aim to make you industry ready in no time!
My Personal Notes arrow_drop_up
Recommended Articles
Page :