Fix “SDK tools directory is missing” Error in Android Studio - GeeksforGeeks (2024)

Improve

Sometimes it happens with developers that when he/she starts the “android studio” program, displayed a window of “downloading components” which says: “Android SDK was installed to C: / Users / user / AppData / Local / android / SDK2 SDK tools directory is missing “. So to fix “SDK tools directory missing” in android studio, try the following methods

Method 1

The Cause for this error -SDK tools package might not be installed.

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory. (C:\Users\..\AppData\Local\Android\Sdk\tools.)

Fix “SDK tools directory is missing” Error in Android Studio - GeeksforGeeks (2)

“HIDE OBSOLETE PACKAGES” DESELCTED

Method 2

Another reason -Prolly due to inadequate storage available than requisite(minimum 4.53 GB) at your place of download, android SDK tools package did not get installed

Quick fix: Uninstall Android SDK (default location C:\Users\..\AppData\Local\Android\Sdk ) and install it again. This time affirms the minimum required storage space at your place of download. After execution check, if tools folder is now added in SDK directory.

Fix “SDK tools directory is missing” Error in Android Studio - GeeksforGeeks (3)

REQUIRED FREE SPACE

Fix “SDK tools directory is missing” Error in Android Studio - GeeksforGeeks (4)

COMPLETE SDK FOLDER

Method 3

Alternative reason- corporate proxy jamming the installer’s call to the internet, due to which android studio installer could not install SDK.

Quick fix: List the path to your corporate PAC file. For that, you need to find the URL. So, go to System Preferences -> Network -> Advanced -> Proxies -> Automatic Proxy Configuration -> Proxy Configuration File . Now once we know the correct URL, go to Configure -> “Appearance and Behavior” -> System Settings -> HTTP Proxy. Select “Automatic proxy configuration URL:” and enter the URL.

Method 4

Just as this error pops up, in place of clicking on ‘finish’ click ‘x’. Further, when it asks to reinitialize, Choose the recommended option. Then click Configure -> Project Defaults -> Project Structure and copy-paste or browse (AppData folder may be hidden) to C: / Users / .. / AppData / Local / android / SDK. Try running the project again. Hope this helps!!!.


Last Updated : 09 May, 2021

Like Article

Save Article

Share your thoughts in the comments

Please Login to comment...

Fix “SDK tools directory is missing” Error in Android Studio - GeeksforGeeks (2024)

FAQs

Fix “SDK tools directory is missing” Error in Android Studio - GeeksforGeeks? ›

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK

Android SDK
Android SDK build tools are used for building actual binaries of Android App. The main functions of Android SDK Build tools are built, debug, run and test Android applications. The latest version of the Android SDK Build tool is 30.0.
https://www.geeksforgeeks.org › android-sdk-and-its-compon...
Tools(obsolete). A new folder named Tools is now generated in the SDK directory.

How to fix SDK location not found in Android Studio? ›

In this blog post, we will guide you through the process of fixing the “SDK Location Not Found” error.
  1. Step 1: Open the build.gradle File. ...
  2. Step 2: Add Some Random Text. ...
  3. Step 3: Remove the Random Text. ...
  4. Step 4: Sync the Project. ...
  5. Step 5: Verify the Fix.
Sep 8, 2023

How to add SDK tools in Android Studio? ›

Install the SDK

Within Android Studio, you can install the Android 14 SDK as follows: Click Tools > SDK Manager. In the SDK Platforms tab, expand the Android 14.0 ("UpsideDownCake") section and select the Android SDK Platform 34 package.

Where is Sdk in Android Studio folder? ›

by default, the "Android Studio IDE" will be installed in " C:\Program Files\Android\Android Studio ", and the "Android SDK" in " c:\Users\username\AppData\Local\Android\Sdk ".

Why Android Studio does not recognize Sdk? ›

Go to File -> Invalidate Caches... , and select "Invalidate and Restart" option to fix this and then rebuild project again. Set correct path for SDK . Synchronize project manually by clicking the Sync Project with Gradle Files button in the toolbar.

How to re install Sdk in Android Studio? ›

Install Latest Version of Android SDK Platform Packages and Tools
  1. On the Android Studio landing page, select Configure > SDK Manager.
  2. From your Android Studio application toolbar, select Tools > Android > SDK Manager.
  3. From your Android Studio application toolbar, click SDK Manager.

How to solve Android SDK file not found? ›

Here are some steps you can take to solve this issue:
  1. Check that the Android SDK is installed:Open Android Studio and go to File > Project Structure > SDK Location. Check if the Android SDK is installed. ...
  2. Set the Android SDK location in Android Studio:Open Android Studio and go to File > Project Structure > SDK Location.
Apr 12, 2023

How to solve unable to locate Android SDK? ›

For this issue you have to add three variables to the Path in the:
  1. C:\Users\admin\AppData\Local\Android\platforms // The path to platform.
  2. C:\Users\admin\AppData\Local\Android\platform-tools // The path to platform-tool.
  3. C:\Users\Admin\AppData\Local\Android\emulator // The path to emulator.
Aug 25, 2018

How to check Sdk version in Android Studio? ›

To verify the version, make the following changes: In Android Studio, click Tools => Android => SDK Manager. If you have not installed the latest version of the SDK Platform, then click to install it. Make a note of the version number.

Where is the root folder for Android SDK? ›

By default, the Android SDK root folder is located at ~/. katalon/tools/androidsdk. You can rename or move your Android SDK root folder to another location and use the ANDROIDHOME environment variable to point the path to that new location. See also: [Mobile] Android Setup.

How to solve Android SDK File not found? ›

Here are some steps you can take to solve this issue:
  1. Check that the Android SDK is installed:Open Android Studio and go to File > Project Structure > SDK Location. Check if the Android SDK is installed. ...
  2. Set the Android SDK location in Android Studio:Open Android Studio and go to File > Project Structure > SDK Location.
Apr 12, 2023

How to re install SDK in Android Studio? ›

Install Latest Version of Android SDK Platform Packages and Tools
  1. On the Android Studio landing page, select Configure > SDK Manager.
  2. From your Android Studio application toolbar, select Tools > Android > SDK Manager.
  3. From your Android Studio application toolbar, click SDK Manager.

Why Android Studio does not recognize SDK? ›

Go to File -> Invalidate Caches... , and select "Invalidate and Restart" option to fix this and then rebuild project again. Set correct path for SDK . Synchronize project manually by clicking the Sync Project with Gradle Files button in the toolbar.

How to manually add SDK in Android Studio? ›

Select Tools > Options > Environment Options > SDK Manager.

Click the Add button. On the Add a New SDK dialog box, select Android from the Select a platform drop-down list.

Top Articles
Latest Posts
Article information

Author: Cheryll Lueilwitz

Last Updated:

Views: 5494

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Cheryll Lueilwitz

Birthday: 1997-12-23

Address: 4653 O'Kon Hill, Lake Juanstad, AR 65469

Phone: +494124489301

Job: Marketing Representative

Hobby: Reading, Ice skating, Foraging, BASE jumping, Hiking, Skateboarding, Kayaking

Introduction: My name is Cheryll Lueilwitz, I am a sparkling, clean, super, lucky, joyous, outstanding, lucky person who loves writing and wants to share my knowledge and understanding with you.