小编Dan*_* H.的帖子

使用Jenkins构建android gradle项目失败

我正在尝试在运行OSX的计算机上设置Jenkins,我遇到了问题.

当我尝试使用我的默认用户帐户构建项目时,一切正常,但是一旦我尝试通过Jenkins构建,构建就会失败并显示以下输出:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':Project'.
> Failed to notify project evaluation listener.
    > A problem occurred configuring project ':libraries:actionbarsherlock'.
        > Failed to notify project evaluation listener.
            > Could not resolve all dependencies for configuration ':libraries:actionbarsherlock:compile'.
                > Could not find com.android.support:support-v4:13.0.0.
                  Required by:
                      workspace.libraries:actionbarsherlock:unspecified
Run Code Online (Sandbox Code Playgroud)

我对项目'libraries:actionbarsherlock'的build.gradle看起来像这样:

buildscript {
    repositories {
        maven { url 'http://repo1.maven.org/maven2' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.4.2'
    }
}
apply plugin: 'android-library'

dependencies {
    compile 'com.android.support:support-v4:13.0.0' …
Run Code Online (Sandbox Code Playgroud)

android gradle jenkins

11
推荐指数
2
解决办法
2万
查看次数

标签 统计

android ×1

gradle ×1

jenkins ×1