We assume that the following packages are installed:
JDK 1.6+ as required for Android development
Android SDK (r21.1 or later; the latest version is best supported), preferably installed with all platforms
Maven 3.0.5 (advised) or higher
We set the environment variable, ANDROID_HOME
, to the path of our installed Android SDK. For example, if the SDK is installed at /opt/adt-bundle/sdk
, this can be achieved with the given commands:
On a Unix/bash-based system, use the following command:
export ANDROID_HOME=/opt/adt-bundle/sdk
On a Windows-based system, use the following command:
set ANDROID_HOME=C:\opt\adt-bundle\sdk
Then, add $ANDROID_HOME/tools
as well as $ANDROID_HOME/platform-tools
to your $PATH
(or add %ANDROID_HOME%\tools
and %ANDROID_HOME%\platform-tools
on Windows).