[英]gradle fails to build Android project on remote jenkins server
as i am running Jenkins remotely on Ubuntu ec2 server . 因为我在Ubuntu ec2服务器上远程运行Jenkins。 I used command as follows to install support library :
我使用以下命令来安装支持库:
echo y | 回声y | ./android update sdk --no-ui --all --filter "extra-android-support"
./android更新sdk --no-ui --all --filter“ extra-android-support”
Which installed Android Support Library, revision 22.2 哪个安装了Android支持库,版本22.2
following items were installed in path /var/lib/jenkins/tools/android-sdk/extras/android/support : 在/ var / lib / jenkins / tools / android-sdk / extras / android / support路径中安装了以下项目:
annotations
design
multidex
NOTICE.txt
README.txt
samples
source.properties
v13 (containing android-support-v13.jar and /src folder)
v17 (containing android-support-v17.jar and /src folder)
v4 (containing android-support-v4.jar and /src folder)
v7 (containing android-support-v7.jar and /src folder)
but still i have the following error : 但是我仍然有以下错误:
A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugCompile'. > Could not
find com.android.support:appcompat-v7:22.2.0. Searched in the
following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.jar
Required by: workspace:app:unspecified > Could not find
com.android.support:support-v4:22.2.0. Searched in the following
locations:
https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom
https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.jar
Required by: workspace:app:unspecified
Kindly Help 请帮助
From Android SDK Manager download the
Android Support Repository (in Extras) and an M2 repo of the support libraries will be downloaded to your Android SDK directory
从Android SDK Manager下载
Android支持存储库(额外),并且支持库的M2
存储库将下载到您的Android SDK目录中
If you are using command line server 如果使用命令行服务器
android update sdk --no-ui --all --filter 139 Android更新SDK --no-ui --all --filter 139
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.