Because Mac is a case insensitive operating system, many Linux commands are not supported, so first create a case-sensitive operating system.
Set static IP
Open "System Preferences ..."
Click "Network"
Set static IP
Set Terminal
In "Utilities" Find Terminal, click "Terminal"
Right-click the terminal icon and select "Options", "Keep in Dock" to secure it on the dock.
Click "Terminal", "Preferences ..." in the menu bar to open Terminal preferences
Click "Profiles" to set the font size according to your preference.
Installing the JDK
See if the system has a JDK installed.
$ java-version
The Java runtime is not yet installed on my Mac
Open Java http://www.oracle.com/technetwork/java/javase/downloads/index.html
Click to download the "Mac OS X" version of the JDK
After downloading, double-click Install
Once installed, enter java-versionagain, and the Java version information is displayed
Installing Jenkins
Jenkins official website Https://jenkins.io
Click "Mac OS X" to download
After downloading, double-click the PKG package to install it.
Open the browser and enter http://localhost:8080 to access Jenkins.
Installing Gladle
Http://gradle.org/gradle-download
Click "Binary only Distribution"
Unzip the downloaded zip package into the/OPT directory
sudo Unzip ~/downloads/gradle-2.13-bin. Zip -d/opt/
Adding Gradle Environment variables
$ sudo vim/etc/bashrc
# gradlegradle_home=/opt/gradle-2.13export PATH= $PATH: $GRADLE _home/bin
Make environment variables effective
$ SOURCE/ETC/BASHRC
View Gradle Version Information
$ gradle-v
Android Resource site http://www.androiddevtools.cn. There are not only adt-bundle, but also the latest androidstudio.
Install Android Studio
Once downloaded, double-click the DMG file and drag the Android Studio icon directly to the "Applications" icon to install it.
Install ADT (Android Develop Bundle)
Select Mac OSX 64-bit 23.0.2 with file name adt-bundle-mac-x86_64-20140702.zip
Create the/OPT directory and unzip the downloaded zip package to/opt
sudo mkdir /sudounzip ~/downloads/adt-bundle-mac-x86_64-20140702. zip -d/opt/sudomv /opt/adt-bundle-mac-x86_64-20140702 /opt/ Adt-bundle
Add an Android environment variable
$ sudo vim/etc/bashrc
# android Sdkandroid_sdk_home=/opt/adt-bundle/sdkexport PATH= $PATH: $ANDROID _sdk_home/tools: $ANDROID _sdk_home/platform-tools
Switch to Administrator
sudo -I.
Open Android SDK Manager
# Android SDK
Set up an online update mirror server
Build Jenkins + Android + iOS Auto Development deployment environment on Mac