Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

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

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

SDK is a Software Development Kit. SDK brings together a group of tools that enable programming for Mobile Applications such as Android, and iOS. You can download SDK from the official Google Developers Website for Android and then Extract/put it in the default folder if there is no such then make it. The Default Path of SDK in PC is:


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

The 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.

My Personal Notes arrow_drop_up
Last Updated : 09 Feb, 2023
Like Article
Save Article
Similar Reads
Related Tutorials