Перейти к содержимому

Android sdk где находится

  • автор:

Android Studio SDK location

I see there a lot of similar topics pertaining to this issue but I did not find a solution for me among those posts. I just installed Android Studio v0.8.14 and it won’t let me create a new project because I do not have an SDK path specified. For the life of me I cannot find where that path should be. I see many people have it located in C:/Android or someplace similar, however the only Android files I have are on my desktop in the extracted folder that came in the .zip. All paths inside that folder do not qualify as an appropriate SDK location, according to Android Studio. Am I being completely ridiculous and missing the obvious?

30 Answers 30

For Mac/OSX the default location is /Users/<username>/Library/Android/sdk .

Android Studio on Windows 8:

(in username : please enter valid username)

Install it and restart your Android Studio.

The above steps are similar for win 7 and also same for eclipse.

Update: Windows 10 (similar steps) — pointed out by RBT

Ruchir's user avatar

This is the sdk path Android Studio installed for me: «C:\Users\<username>\appdata\local\android\sdk»

I’m running windows 8.1.

You can find the path going into Android Studio -> Configure -> SDK Manager -> On the top left it should say SDK Path.

I don’t think it’s necessary to install the sdk separately, as the default option for Android Studio is to install the latest sdk too.

Philip Kendall's user avatar

I had forgot where the sdk location was installed to so what I did was open Android Studio and selected Settings then used the following submenu

Current 1/1/2017: Tools -> SDK Manager

Latest edition

outdate: Appearance & Behavior -> System Settings -> Android SDK

There the sdk location was listed as Android SDK Location

CrandellWS's user avatar

Download the SDK from here: http://developer.android.com/sdk/ to C:\android-sdk\.

Then when you launch Android Studio again, it will prompt you for the SDK path just point it to: C:\android-sdk\.

  • Linux (Ubuntu 18.4)
  • windows (8.1)

(AppData folder is hidden, check folder properties first)

  • macOS (Sierra 10.12.6)

macOS (Catalina or Mojave or Sierra):

After installing Android Studio (3.6+ or 2.3.x), by default

sdk path: "/Users/< username >/Library/Android/sdk"

Remember: may be Library folder is hidden.
To make it visible:- Hit Command+shift+. OR Open Terminal and type "chflags nohidden

/Library/" then hit return.

After installing Android Studio, by default

sdk path: "C:\Users< username >\AppData\Local\Android\sdk"

Remember: by default AppData folder is hidden, make it visible first.

AFA's user avatar

Start Android Studio and select Configure —> SDK Manager

enter image description here

Then, check the path of Android SDK

enter image description here

If you can’t find the SDK location, you may want to download it. Just scroll down to near end of the download page and select the Android SDK with respect to your OS.

enter image description here

The location I found it in for Windows 8.1. I think the default SDK folder. AppData is a hidden folder, so you will not locate it unless you type it in once you get into your C:\Users\ folder.

For Mac users running:

  1. Open Android Studio
  2. Select Android Studio -> Preferences -> System Settings -> Android SDK
  3. Your SDK location will be specified on the upper right side of the screen under [Android SDK Location]

I’m running Android Studio 2.2.3

When i upgraded i just moved my SDK to my user folder C:\Users\Nick\Android-SDK and updated my path in Android Studio. Worked like a charm.

EDIT: (More detail) — My SDK was originally inside C:\Program Files (x86)\Android\android-studio\sdk, I just Cut and Paste the entire \sdk folder into C:\Users\Nick\Android-SDK, then set it inside Android Studio to the new location.

Nick H's user avatar

For Ubuntu users running:

  1. Open Android Studio
  2. Select Android Studio -> Settings -> Android SDK or Android Studio -> Project structure -> SDK location or to open Project structure shortcut is ( Ctrl + Alt + Shift + s )
  3. Your SDK location will be specified on the upper right side of the screen under [Android SDK Location]

TylerH's user avatar

Pawan Lakhotia's user avatar

If your project is open click on Gradle Scripts >local.properties(SDK LOCATION) , open it and there is the location of sdk with name

Note don’t forget the replace \\ to \ before coping the things(sdk location)

Default path in Windows

Bruno Ribeiro's user avatar

Linux 2021, after installed follow these steps!

enter image description here

enter image description here

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences).

In the left panel, click Appearance & Behavior > Android SDK.

You will see the path

TylerH's user avatar

Priyanshu Singh's user avatar

This is the right path, if you looking up for sdkmanager .

Marouane K's user avatar

Android SDK is in C:\Users\username\AppData\Local\Android\Sdk

Lahiru Lanka Rathnayaka's user avatar

(MAC Users) To find sdk Location in Android Arctic Fox:
File >> Project Structure>> SDK Location.

syed dastagir's user avatar

Consider Using windows 7 64bits

Windows 10 — when upgrading from AS 2.x to 3.01

AS has the SDK directory name changed from . /sdk to . /Sdk

Because I kept my original settings this caused an issue. Changed back to lowercase and all working!

Peter Wanden's user avatar

AndroidStudioFrontScreenI simply double clicked the Android dmg install file that I saved on the hard drive and when the initial screen came up I dragged the icon for Android Studio into the Applications folder, now I know where it is. Also when you run it, be sure to right click the Android Studio while on the Dock and select «Options» -> «Keep on Dock». Everything else works.

enter image description here

Pierre.Vriens's user avatar

create a new folder in your android studio parent directory folder. Name it sdk or whatever you want. Select that folder from the drop down list when asked. Thats what solves it for me.

I tried the accepted solution but it didn’t resolve the issue for me.

I had already installed Android Studio 2-3 years ago, but I uninstalled it at some point. Installing the latest version was giving me an error. I did multiple uninstalls/reinstallations, but the issue persisted.

I found an SDK was available on my machine in %LocalAppData%. I opened the environment variable and deleted all the references of Android like Android Home /Path. I performed the uninstallation of Android Studio and then reinstalled.

This time it worked and installed properly; it is even downloading the other SDK-related files.

TylerH's user avatar

If you are working on React native,please make sure you have installed these tools because I was missing and it resolved my issue Necessory tolls for installations React Native doc for installation

Muhammad Bilal's user avatar

I found this a couple of minutes back.

What renders the location unuseful is the fact that it is neither empty nor has the sdk. One of the conditions needs to be met for the folder.

On Windows, go to Control Panel and search for ‘show hidden folders and files’. You will find a "Folders" option. On the submenu, you will see "Show hidden files and folders". [The options look like this.][1]

Refer this image. [Click the option shown in the picture][2]

Click apply and ok.

Go to the location i.e. some location in appdata, or the location your android sdk was about to be installed in. The location should be visible now. Go to it and delete everything inside. (Don’t delete the sdk folder, just the contents inside it )

Go to android sdk manager and select the same location again. The error should vanish. Happy installation!

In other words, this error only pops up if you had a previous failed installation.

Где хранит android studio свои SDK?

Хотел посмотреть пример с github.com через file-import samples в Android Studio. И тут программа начала ругаться на то что путь к sdk не указан. Да я могу укзаать на свой старый sdk, но там нет нужного API, а скачивать через 32 кб/с модем долговато.
(Саму студию качал три дня)

Где по дефолту хранится sdk?

  • Вопрос задан более трёх лет назад
  • 18010 просмотров
  • Facebook
  • Вконтакте
  • Twitter
  • Facebook
  • Вконтакте
  • Twitter

Ntnsmirnov

  • Facebook
  • Вконтакте
  • Twitter

anyd3v

iGoSystem

Windows:
C:\Users\user\AppData\Local\Android\Sdk
или:
%LOCALAPPDATA%\Android\sdk

Where Is the Android SDK Folder?

Jacob HicksBy Jacob Hicks May 31, 2022 December 4, 2022

Where Is The Android Sdk Folder 1

The Android Software Development Kit (SDK) is a collection of developments using which you can develop apps to be used on the Android platform. You need to install this tool on your computer to do advanced things like rooting your phone or updating the software. However, what happens if you can’t locate the Android SDK folder?

If you’re into tech and writing apps, this is an issue you might have experienced at some point in time. Fortunately, you can locate this tool by following the steps detailed below and finding the exact location of the Android SDK folder.

You’ll also be taken through some of the most frequently asked questions related to the Android SDK folder. Let’s jump ahead and get right ahead and see where you can find the SDK folder.

Method #1: Open the Run Window

The easiest way to locate the Android SDK folder in Windows is by opening the Run window, and here are the steps to follow:

  1. Click Windows key + R .
  2. Paste %localappdata%\Android\Sdk , which is Android SDK’s default location in Windows.
  3. Press “OK”.

Doing this will immediately take you to the location of the Android SDK folder on your Windows computer. The %localappdata%\Android\Sdk used to help you find the Android SDK folder is a Windows environment variable in your user directory plotted on the Local App Data folder ( C:\Users\Username\AppData\Local ).

Method #2: Use Android Studio

Another method of locating the SDK folder is by using Android Studio. The steps you should follow to pinpoint this folder’s exact location are;

  1. Launch Android Studio by double-clicking on its desktop icon or entering Android Studio in the Start menu.
  2. Once Android Studio is open, tap on the “Configure” button.
  3. Click on the “SDK Manager” option.
  4. When inside the Android IDE, click on the “File” > “Settings” option, after which Android Studio will launch the Settings window.
  5. The precise location of the Android SDK location will appear on the “Android SDK Location” field.
  6. If you still don’t see the Android SDK folder, go to “Appearance & Behavior” > “System Settings” > “Android SDK” page.
  7. Double-click on the location after locating the Android SDK location and press the Ctrl + C shortcut.

After following these simple steps, you’ll locate the precise location of the SDK folder in your Android Studio. Therefore, you can manage it by updating parts of the SDK if updates are available by installing new APIs or SDK tools.

Summary

For many, finding the precise location of the Android SDK folder might appear to be quite complicated. However, this isn’t the case, as you can easily locate the Android SDK folder regardless of where it is on your computer.

This guide has better illustrated this by taking you through the steps you need to follow to pinpoint where the Android SDK folder’s location. After this, you can proceed to use ADB commands or other Android platform tools you can find on the command line. But without knowing where the Android SDK folder is located, you can’t perform this ADB command.

Frequently Asked Questions

Yes, Android SDK can be found integrated into Android Studio, the integrated development environment (IDE) authorized by Google.

The Android SDK path is C: Users<username>AppDataLocalAndroidsdk. You can find this path by opening the Android SDK manager, after which you’ll see the SDK path evidently on your status bar. Remember not to use the Program Files path when installing the Android Studio because of the space in this path.

The steps to fix Android SDK in case it’s missing or corrupted are;

1) Tap on “Configure”.
2) Select “Project Defaults”.
3) Press on “Project Structure”.
4) Set the Android SDK path that’s found here: C:\User\YourPcname\AppData\Local\SDK
5) Apply the changes
6) Choose SDK from the Configure option, and this will open the Android SDK manager page.
7) You’ll see the “Install packages” option on the bottom section.

The steps to follow to install a new Android 12 SDK within Android Studio are;

1) Tap on “Tools” > “SDK Manager”.
2) Choose Android 12 in the SDK Platforms tab.
3) Go to the SDK Tools tab and choose Android SDK Build-Tools 31.
4) Press OK to initiate the installation of the SDK.

How to Install Android SDK Tools

To Develop Android-based Apps, you will need to Install Android SDK. In this How to Install Android SDK Tools, we will learn what is Android SDK is and how to install the Android SDK using Android Studio. First, we will learn about the Android SDK Manager GUI to manage the SDK. We will find out how to find out the SDK location, various components of SDK like SDK Platforms, SDK Tools, Build Tools, Platform-tools, System Images, Emulators, etc. Finally, we will show you how to install the Android SDK.

Table of Contents

What is Android SDK

The Android Software Development Kit (SDK) is a set of development tools, which is needed to develop Android-based applications.

We can create Android Apps in many ways. You can make use of Java or Kotlin or use frameworks like Ionic, NativeScript or React Native. But whichever tools you use the Android SDK is a must.

The Android SDK comes with the required tools to build Android apps. Using the SDK you can install the app in the device and access the features provided by the OS. The SDK also comes with tools to debug the application. The Android emulator allows you to test apps in different types of devices, without needing to buy one.

The Android SDK comes in various versions. Each new release of Android OS is accompanied by a new SDK version or API Version. For Example, the latest Android Pie ( or Android 9 ) has a corresponding SDK API version of 28. You can refer to the SDK Platform release notes to find out the more details about each release

Android SDK Manager

The Android SDK Manager helps us download & manage the Android SDK. It makes it very easier to search for updates, install and remove the older unused SDK’s easily

The SDK Manager is part of the Android Studio and installed along with it. Hence, you need to install it first. Refer to our tutorial How to download & install the Android Studio tutorial.

You can open the SDK Manager by clicking on Menu Option Tools -> SDK Manager ( or Tools -> Android -> SDK Manager in older versions of Android Studio). You can also click on the icon in the tool bar as shown in image below

Locating the Android SDK Manager in Android Studio

Locating the Android SDK Manager in Android Studio

The Following is the image of the Android SDK Manager

Android SDK Manager

Android SDK Manager

In the lefthand side pane, you have to select Android SDK under Appearance & behavior -> System Settings

Android SDK Location

The Android SDK path is usually C:\Users\<username>\AppData\Local\Android\sdk as shown in the image above. But you can change it by clicking on the edit link.

The SDK Location is very important if you are using NativeScript or ionic, For NativeScript to pick up the SDK you need to define the ANDROID_HOME environment variable. While the ionic expects ANDROID_SDK_ROOT environment variable to point to the SDK path.

The SDK Manager contains three tabs. They are SDK Platforms SDK Tools & SDK Update Sites.

SDK Platforms

This tab contains the list of Android SDKs. The SDKs are a must if you want to develop apps targeting the Android Platform. Each new version of Android comes with its own SDK version ( API level and a revision).

Under each API, there are a few different types of files, which are displayed only if you select show package details option. They are shown in the image below.

Android SDK Platform:
This file is required to compile and run the Android Application. At least one SDK Platform must be installed. Always use the latest SDK version, when developing the App. You are still able to run the App on the older versions of Android.

Sources for Android package:
The source files for the platform, contain metadata about the SDK Platform and is helpful when debugging the android App. Always install the corresponding sources when installing the SDK Platform

System Image packages:
These are used by the Android Emulators to run the App in Emulator. Each SDK platform version contains a list of supported system images. You must select an image based on your computer Processor. You can also install them when you are creating the Android Virtual Devices (AVDs) using the AVD Manager.

Android SDK Platform

Android SDK Platform

SDK Tools

This tab contains the set of development and debugging tools for the Android SDK

Android SDK Tools

Android SDK Tools

Android SDK Build-Tools: Required
This contains the tools required to build Android Apps. You must install this package. See the Android SDK Build tools release notes.

Android SDK Platform-Tools: Required
This contains the tools required by the Android platform. The tools like ADB (Android Debug Bridge) are part of the Platform-tools. This package is required. See the Android SDK Platform Release notes

Android SDK Tools: Required
This tool includes essential tools such as ProGuard etc. See the SDK Tools Release Notes.

Android Emulator: Recommended
The Android Emulator was part of the Android SDK Tools up to version 25.2. Now they are available to install separately. You need an Emulator to debug and test your applications in an Emulated Android Runtime. See the Android Emulator release notes.

SDK Update Sites

This tab lists the Android & third party sites, where Android Studio looks for the update. You can add other sites to the list and download the packages from those sites as well.

SDK Update sites. List of sites where Android Looks for Updates.

SDK Update sites. List of sites where Android Looks for Updates.

If you are behind a proxy server, then remember to setup the proxy server from the HTTP Proxy option.

How to install the Android SDK

To Install a new SDK click the checkbox, Similarly to update an SDK. Whenever an update is available a dash appears in the checkbox next to the package. The status field shows the current installation status of the SDK.

To remove or uninstall a package, unselect the checkbox

Click on the Apply or OK button to begin the installation.

Installing the Android SDK. Confirm Change

Installing the Android SDK. Confirm Change

Next, you may be asked to accept the License Terms and then the installation begins. Installation takes some time to complete depending on the no of packages you have selected.

Downloading & Installing Android SDK

Downloading & Installing Android SDK

Once done, click on Finish. Now the Android SDK is successfully installed.

Summary

In this How to Install Android SDK Tutorial, we learned what is Android SDK is and how to install/update it using Android SDK, We also learned a few things about SDK Platform, SDK Tools, SDK Platform build tools, SDK Build Tools, System Images, etc.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *