The final, complete ANDROID_HOME directory structure should look like below, consist of quite a few sub-directories:īuild-tools, cmdline-tools, emulator, licenses, patcher, platform-tools, platforms, tools. Because later, when updating Android SDK, or installing more packages, the other packages will be placed under ANDROID_HOME, but not under cmdline-tools. , you'd better set in PATH environment variable.īut cmdline-tools should not be set as ANDROID_HOME. Well the folks who are trying to download either on *ix or Ec2 machine would suggest to clean approach in below steps: $ mkdir android-sdk
Note: I recommend downloading x86 images as they're much faster tham arm counterparts, also get intel HAXM (hardware accelerated execution manager) driver to significantly increase your emulator speedĪll set, now you just need to create and configure an Android virtual device matching your target Android version and tweak desired settings. The SDK manager window will appear, now you need to update/download other sdk packages (i.e platform-tools, system-images, platforms etc according to API levels).When done leave the option to download system images "checked":.After downloading the package, begin installation (and choose the desired installation folder to proceed or just leave the default %USERPROFILE%\android-sdk):.
This extracts content to a single directory named tools, like: +- android-sdk Sdk-tools-linux-*.zip only includes the command-line tools.
Tools/bin/sdkmanager "platform-tools" "platforms android–27" "build-tools 27.0.3"
You can also use the sdkmanager to list and to install any specific packages needed. When executing the above commands, make sure that you replace * with an appropriate version number which you could find in the download page.