How to download Android SDK without downloading Android Studio?

At the moment, I am running a PC with Windows 8.1, which does not have memory or RAM for the IDE, such as Android Studio or Eclipse. I want to download the Android SDK tools, without an IDE. How can I do that?

+146
android android-studio android-sdk-manager
May 29 '16 at 2:54
source share
9 answers

You can find the command line tools on the download page in the "Command Line Tools Only" section.

enter image description here

These are the links currently on the page (version 26.1.1):

Be sure to read the terms of service and agree to them before downloading any of the command line tools.

The installer version for Windows seems to be no longer available, this is the link for version 24.4.1:

+150
May 29 '16 at 3:00
source share

Go to the "Get only command line tools" section on the android downloads page and download the tools for your system.

For Windows:

Extract contents to C: \ Android \ android-sdk

Go to C: \ Android \ android-sdk \ tools \ bin and open a command prompt window
(shift + right click)

Follow these steps to download the latest Android package:

sdkmanager "platforms;android-25" 

Refresh All

 sdkmanager --update 

Other operating systems. Do almost the same, but without using Windows directories.

The sdkmanager page gives more information about which commands to use to install your sdk.

+84
Feb 11 '17 at 18:14
source share

What worked for me on Windows:

  • Downloaded command line tools from https://developer.android.com/studio/index.html
  • Put the entire tools folder from the ZIP archive in C:\Program Files (x86)\Android SDK\
  • Launched tools\android.bat as an administrator, who opened the regular SDK Manager
  • Installed prerequisites . Files were uploaded to the directory ...\Android SDK\ (i.e. build-tools , platforms , platform-tools , etc. Directories appeared next to tools inside ...\Android SDK\ )
  • I opened the Android project in Intellij IDEA, went to File-> Project Structure-> SDK and added the Android SDK, directing it to the directory ...\Android SDK\
+13
Mar 30 '17 at 13:09 on
source share

Command line approach

 mkdir android-sdk cd android-sdk wget https://dl.google.com/android/repository/sdk-tools-linux-*.zip unzip sdk-tools-linux-*.zip tools/bin/sdkmanager --update 

When executing the above commands, make sure that you replace * with the appropriate version number, which you can find on the download page .

additional

sdk-tools-linux-*.zip includes only command line tools. This extracts the content into a single directory called tools , for example:

 +- android-sdk +- tools 

To get the SDKs, we can run:

 tools/bin/sdkmanager --update 

Sdkmanager accepts the following flag:

 --sdk_root=<sdkRootPath>: Use the specified SDK root instead of the SDK containing this tool 

But if we omit this flag, it accepts the parent tools directory as the sdk root directory, in our case it is the android-sdk directory.

If you check the android-sdk folder after running tools/bin/sdkmanager --update it will look like this:

 +- android-sdk +- tools +- emulator +- platforms +- platform-tool 

If necessary, also set the ANDROID_HOME environment variable, for example:

 export ANDROID_HOME=/path/to/android-sdk 
+9
Mar 19 '18 at 7:15
source share

This guide is a step-by-step guide on installing the Android SDK (Software Development Kit), assuming the user starts from scratch.

There are only a few prerequisites to which you should pay attention:

  • The Java runtime (or JDK) on the Oracle website (and download the correct version (32-bit or 64-bit) for your computer).
  • Good internet connection (necessary for downloading system images, etc.)

I recommended using the standalone SDK installer to install the basic tools, namely the SDK and AVD manager: here you can find the latest installer: Installer_r24.4.1 SDK (for Windows), Installer_r24.4.1 SDK (for linux) or Installer_r24.4.1 SDK (for macros )

For this tutorial, I used Windows :

Here's a walkthrough:

  • Depending on your choice, download the appropriate SDK from the links above (but for this example I will use the manual method)
  • After downloading the package, start the installation (and select the desired installation folder to continue, or just leave the default value %USERPROFILE%\android-sdk ):

enter image description here

  • When done, leave the option to download system images "verified":

enter image description here

Now we are in business ...

  • The SDK manager window will appear, now you need to update / download other SDKs (for example, platform tools, system images, platforms, etc. According to the API levels)

enter image description here

Note: I recommend downloading x86 images, since they are much faster than similar ones, and also get the Intel HAXM driver (hardware accelerated execution manager) to significantly increase the speed of the emulator

  • Everything is ready, now you just need to create and configure the Android virtual device corresponding to the target version of Android, and configure the necessary parameters.

  • To do this, go to the " Tools " tab in the SDK manager and select "Manage AVD", then in the next window click " Create" and you will see a similar screen, as shown below:

enter image description here

  • After that, load the newly created virtual device.

enter image description here

  • Install applications and test as you want.
+5
Jul 19 '18 at 18:10
source share
  • Download the sdk file from.

  • Unzip it.

  • Put these two files in: /Users/computer_name/AppData/Local/Android/sdk/ or in the right place.

  • Open the eclipse development environment.

  • Go to "Windows Settings-> → change sdk location.

  • Specify the sdk storage location. For example, if you saved these two files in /Users/computer_name/AppData/Local/Android/sdk/ , set this location to /Users/computer_name/AppData/Local/Android/sdk/sdk .

Note Here sdk/sdk , since you store two files in the sdk file - the sdk file and the SDK manager .

Happy coding :)

+2
May 31 '17 at 23:06
source share

Only command line without sdkmanager (for advanced users / CI):

You can find links to download all individual packages, including various revisions, in the XML file of the repository: https://dl.google.com/android/repository/repository-12.xml

(where 12 is the version of the repository index and will increase in the future).

All <sdk:url> values ​​refer to https://dl.google.com/android/repository , therefore

 <sdk:url>platform-27_r03.zip</sdk:url> 

can be downloaded at https://dl.google.com/android/repository/platform-27_r03.zip

Similar final XML files exist for system images:

0
Mar 15 '19 at 13:48
source share

Unfortunately, right from Google, which you can download if your company’s firewall is blocking other sources, the September 1.6, September 1, 2009 release is the last SDK they have.

0
Jul 17 '19 at 9:29
source share

I downloaded Android Studio and installed it. The installer said: -

Android Studio => ( 500 MB )

Android SDK => ( 2.3 GB )

The Android Studio installer is actually the “Android SDK installer” along with the sometimes useful tool called “Android Studio”.

Most importantly: - Android Studio Installer will not just install the SDK. He will also be: -

  • Install the latest built-in tools.
  • Install the latest tool platforms.
  • Install the latest AVD manager that you can't do without.

Things you will need to do manually if you install the SDK from its zip file.

Just calm down. Install Android Studio .

******************************** ********* ***********

So, inspired by the answers in the comments, I would like to update my answer.

The update consists only in the fact that only (and only) if 500 MB of hard disk space does not matter to you than for Android Studio, otherwise other answers will be better for you.

Android Studio worked for me since I had a 1 TB hard drive, which is 2000 times 500 MB.

Also note: that RAM should not limit you, since you do not even run Android Studio.

I came to this solution because I myself was stuck in this problem. I tried other answers, but for some reason (maybe my competencies) they did not work for me. I decided to go to Android Studio and realized that this is only 18% of the total installation, and the SDK is 82%. While I thought differently. I do not delete the answers, despite the negative rating, as the answer worked for me. I could work for someone, someone using a 1 TB hard drive (which is quite common these days).

-3
Sep 13 '17 at 22:54 on
source share



All Articles