gpt4 book ai didi

android - gradle无法在远程jenkins服务器上构建Android项目

转载 作者:行者123 更新时间:2023-12-03 03:33:08 25 4
gpt4 key购买 nike

因为我在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

关于android - gradle无法在远程jenkins服务器上构建Android项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31340845/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com