2015-07-10 130 views
2

因爲我在Ubuntu ec2服務器上遠程運行Jenkins。我用命令如下安裝支持庫:gradle無法在遠程jenkins服務器上構建Android項目

echo y | ./android更新SDK --no-UI --all --filter裏面裝的Android支持庫 「超Android的支持」

,修訂22.2

下列項目進行了安裝路徑的/ var/lib中/詹金斯/工具/ Android的SDK /演員/安卓/支持:

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 

好心幫

回答

0

的Android SDK管理器下載Android的支持庫(在extras)和支持庫的M2回購將

如果您正在使用命令行服務器
安卓下載到你的Android SDK目錄更新sdk --no-ui --all --filter 139

相關問題