我在AWS上使用Ubuntu 14+配置了jenkins
。我安装了sdk,jdk,git,并设置了ANDROID_HOME。但是,我无法创建avd,而且我也无法使用gradle文件进行构建:
clean -b app/build.gradle
安装sdk:
cd /var/lib/jenkins/tools
wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
tar xvfz android-sdk_r23.0.2-linux.tgz
mv android-sdk-linux android-sdk
检查SDK的安装:
/var/lib/jenkins/tools/android-sdk/tools/android list sdk -a
安装选定的SDK:
/var/lib/jenkins/tools/android-sdk/tools/android update sdk --no-ui --all --filter build-tools-21.1.1
我得到的错误:
What went wrong:
A problem occurred configuring project ':app'.
failed to find Build Tools revision 21.1.1
答案 0 :(得分:1)
此图片中显示错误
cd / var / lib / jenkins / tools wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz tar xvfz android-sdk_r23.0.2-linux.tgz mv android-sdk-linux android-sdk
clean -b Sports / build.gradle
/ var / lib / jenkins / tools / android-sdk / tools / android update sdk -u -t tool,platform-tool -a
/ var / lib / jenkins / tools / android-sdk / tools / android list sdk -a
/ var / lib / jenkins / tools / android-sdk / tools / android update sdk --no-ui --all --filter build-tools-21.1.1