詹金斯无法解决依赖关系?

时间:2015-12-04 16:25:19

标签: android mobile 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.

我应该提一下项目中没有错误。它编译,当我在本地运行时运行良好。

1 个答案:

答案 0 :(得分:0)

我找到了一个解决方法!

如果有人处于同一位置,请尝试以下方法: 创建一个辅助git分支,让jenkins指向新分支。 通过这样做,错误不再发生。