簡體   English   中英

gradle無法在遠程jenkins服務器上構建Android項目

[英]gradle fails to build Android project on remote jenkins server

因為我在Ubuntu ec2服務器上遠程運行Jenkins。 我使用以下命令來安裝支持庫:

回聲y | ./android更新sdk --no-ui --all --filter“ extra-android-support”

哪個安裝了Android支持庫,版本22.2

在/ 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)

但是我仍然有以下錯誤:

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

請幫助

Android SDK Manager下載Android支持存儲庫(額外),並且支持庫的M2 存儲庫將下載到您的Android SDK目錄中

如果使用命令行服務器
Android更新SDK --no-ui --all --filter 139

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM