Android 詹金斯不能解决依赖关系?

Android 詹金斯不能解决依赖关系?,android,mobile,jenkins,Android,Mobile,Jenkins,我对詹金斯很陌生。当Jenkins试图构建我的项目时,我得到一个错误,说“无法解析依赖项”。有人知道解决方法吗?以下是我得到的错误: FAILURE: Build failed with an exception. * What went wrong: > Could not resolve all dependencies for configuration ':mobile:_ukDebugCompile'. > Could not find com.android.suppor

我对詹金斯很陌生。当Jenkins试图构建我的项目时,我得到一个错误,说“无法解析依赖项”。有人知道解决方法吗?以下是我得到的错误:

FAILURE: Build failed with an exception.
* What went wrong:
> Could not resolve all dependencies for configuration ':mobile:_ukDebugCompile'.
> Could not find com.android.support:appcompat-v7:20.0.0.
 Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/20.0.0/appcompat-v7-20.0.0.pom
     https://jcenter.bintray.com/com/android/support/appcompat-v7/20.0.0/appcompat-v7-20.0.0.jar
 Required by:
     project_name:mobile:unspecified

> Could not find any version that matches com.google.android.gms:play-services-wearable:+.
Searched in the following locations:
     https://jcenter.bintray.com/com/google/android/gms/play-services-wearable/maven-metadata.xml
     https://jcenter.bintray.com/com/google/android/gms/play-services-wearable/ Required by:
     project_name:mobile:unspecified

* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
我应该提到的是,这个项目没有错误。它可以编译,在本地运行时运行良好。

我找到了解决方法

如果有人处于相同的位置,请尝试以下操作: 创建第二个git分支,并使jenkins指向新分支。
这样,错误就不再发生了

你在jenkins机器上更新SDK了吗?是的,它是在运行jenkins的机器上下载的,我是说更新了。因为它似乎找不到libs。请确保已更新SDK,您的Jenkins配置以Ghi Pedro为目标。我找到了一份工作。请看下面我的答案。SDK是最新的。