タグ「Android」が付けられているもの

Installation of Android SDK (March 2017)

To develop Android application, we can use 3rd party tools e.g. IntelliJ IDEA, Visual Studio instead of Android Studio. It's needed to install Android SDK in some way. But I can find, almost all information about installation it is obsoleted (for example, using installer although there's nothing in the package). And so I note an installation it's suitable for the latest version.

1. Requirements

  • JDK 7 or later, needed to set path to 'java' or 'java.exe'
  • New directory used as Android SDK home (called <android-sdk-home>), e.g. /opt/android-sdk, C:\android-sdk

It's most important to prepare <android-sdk-home> directory. Because it's never created automatically.

2. Download SDK Tools

At first, Download Android SDK Tools from following URL: https://developer.android.com/studio/index.html

Can obtain Android Studio IDE or SDK Tools. In this instruction, download SDK Tools package named 'tools_r25.2.3-<platform>.zip'.

3. Setup SDK Tools

Extract downloaded package and created 'tools' directory. move 'tools' directory to <android-sdk-home>. Then run Android SDK Manager (android or android.bat in <android-sdk-home>/tools) and configure Tools, Platform-tools, Build-tools and APIs. If use latest (API 25), set as the default.

Pay attention to <android-sdk-home> not as path to Android SDK before setup. During setup several directories (except 'tools') are created. In my environment, following directories exist in <android-sdk-home> immediately after setup.

  • build-tools
  • extras
  • platforms
  • platform-tools
  • sources
  • system-images
  • temp
  • tools (It's downloaded)

4. Set Android SDK path to IDE

Set <android-sdk-home> to 'Android SDK home path' (as IntelliJ) and running on SDK tools on the IDE.