

It should be the one you named in the android: compileSdkVersion section of your adle file. Here are the SDK package names you'll definitely wish to select: Before you begin, take a look at the adle file in your project. You will want to install the same Android SDK packages on your build machine as you did to get Gradle running locally. If this doesn't work, your PATH variable has not been set up with the Android SDK location.


bash_profile: $ source ~/.bash_profile Installing via the GUIĪt the prompt, type android and hit Enter to launch the Android SDK Manager in a window. # Android export ANDROID_SDK_ROOT =/Users/ciandroid/android-sdk-macosxĮxport PATH = $PATH: $ANDROID_SDK_ROOT/tools If you're not using bash, edit the right config file for your environment. Now it's time to set your build environment's PATH variable and other variables that will be use to locate Android.Įdit your. $ tools/bin/sdkmanager "platforms android-25" "build-tools 25.0.2" "extras google m2repository" "extras android m2repository" Run the sdkmanager tool: $ tools/bin/sdkmanager -update The directory names can be anything you like, but save the files in somewhere easy to find (i.e. Unzip and place the contents within your home directory. Use wget with the correct SDK URL: $ wget Copy the URL for the download that's appropriate for your build machine OS. Go to Android SDK and navigate to the SDK Tools Only section. You will need to download the Android SDK without Android Studio bundled. This will install the Android SDK tools in /usr/local/Cellar/android-sdk/ Installing the Android SDK (Manual Way)
