android

linux下持续集成环境搭建及android基本环境配置

2018-03-05  本文已影响43人  djskra

jdk

1.sudo apt-get install openjdk-8-jdk

2.apt-cache search jdk

3.export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

export PATH=$PATH:/usr/lib/jvm/java-8-openjdk-amd64/bin

4.javac -version

jenkins

1.wget -q -O - [https://pkg.jenkins.io/debian-stable/jenkins.io.key](https://pkg.jenkins.io/debian-stable/jenkins.io.key) | sudo apt-key add -

2.Then add the following entry in your /etc/apt/sources.list:

deb [https://pkg.jenkins.io/debian-stable](https://pkg.jenkins.io/debian-stable) binary/ 3.sudo apt-get update

4.sudo apt-get install jenkins

gradle

1.mkdir /opt/gradle_2.14.1

2.sudo wget [https://services.gradle.org/distributions/gradle-2.14.1-all.zip](https://services.gradle.org/distributions/gradle-2.14.1-all.zip)

3.unzip

4.export GRADLE_HOME=/opt/app/gradle-2.14.1

export PATH=$GRADLE_HOME/bin:$PATH

android sdk

1.sudo wget [https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip](https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip)

2.export ANDROID_SDK_HOME=/opt/app/android-sdk-linux

export PATH=$ANDROID_SDK_HOME/tools:$ANDROID_SDK_HOME/platform-tools:$PATH

3.android update sdk --no-ui -u --all --filter platform-tools,android-19,android-25

上一篇下一篇

猜你喜欢

热点阅读