Installing Android SDK on macOS and Configuring Jenkins Plugins for CI
This guide explains how to download and install the Android SDK on macOS, set up the required environment variables, install and configure Jenkins plugins—including Git, Gradle, Xcode, and fir.im—and finally configure the ANDROID_HOME global variable for automated builds.
First, download the Android SDK from the provided URL (http://www.androiddevtools.cn/). Choose the appropriate Build‑Tools version that matches your development environment, and obtain the SDK packages needed for your projects.
Next, configure the environment variables on macOS:
ANDROID_HOME=/Users/huaan/Downloads/sdk
export ANDROID_HOME
export PATH=$PATH:$ANDROID_HOMERun source ~/.bash_profile to apply the changes.
Then install Jenkins plugins. Inside Jenkins, install the following plugins from the internal plugin manager: Git plugin, SSH Credentials plugin, Gradle plugin, Xcode integration plugin (for iOS), and any Android‑specific plugins you need. Additionally, download the fir.im plugin from http://7xju1s.com1.z0.glb.clouddn.com/fir-plugin-1.9.5.hpi and upload it manually.
After installing the plugins, configure them through Jenkins' System Management page. Follow the illustrated steps (screenshots omitted) to set up each plugin correctly.
Finally, add the ANDROID_HOME variable as a global environment variable in Jenkins so that all jobs can locate the Android SDK. Once this configuration is complete, you are ready to create Jenkins jobs for building Android applications.
The article concludes by noting that future posts will cover job configuration, common issues, and further software upgrades.
Test Development Learning Exchange
Test Development Learning Exchange
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.