无法在 gitlab(gradle) 中构建提交

帕维尔·阿尔希波夫

当我提交并将更改推送到 gitlab 时,程序集出现错误:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':somebible-id-client-app'.
> Could not resolve all dependencies for configuration ': somebible-id-client-app:_secondaryDebugApkCopy'.
   > Could not resolve ru.somebible.android:statistic:0.0.5.
     Required by:
         project :somebible-id-client-app
      > Skipped due to earlier error

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 22s
ERROR: Job failed: exit code 1 

我的 build.gradle:

buildscript {
    repositories {
        mavenCentral()
        maven {
            url 'http://jenkins01.mobile.somebible.ru:7700/nexus/content/repositories/somebible-internal/'
        }
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath 'me.tatarka:gradle-retrolambda:3.2.5'
    }
}

repositories {
    mavenCentral()
    maven {
        url 'http://jenkins01.mobile.somebible.ru:7700/nexus/content/repositories/somebible-internal/'
    }
    google()
    jcenter()
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'idea'

idea {
    module {
        downloadJavadoc = true
        downloadSources = true
    }
}

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.3'

    defaultConfig {
        applicationId "ru.somebible.somebibleidclientapp"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        debug {
            useProguard false
        }
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
        prod {
            resValue "string", "app_name", "Id Client App"
        }
        secondary {
            applicationId "ru.somebible.somebibleidclientappsecondary"
            resValue "string", "app_name", "Id Client Secondary App"
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    lintOptions {
        abortOnError false
    }

    dependencies {
        ext.support_version = '25.3.1'

        compile fileTree(include: ['*.jar'], dir: 'libs')

        compile project(':somebible-id')
        apt 'com.jakewharton:butterknife-compiler:8.0.1'
        compile "com.android.support:appcompat-v7:$ext.support_version"
        compile "com.android.support:design:$ext.support_version"
        compile 'com.jakewharton:butterknife:8.0.1'
        compile 'io.reactivex:rxjava:1.1.3'
        compile 'io.reactivex:rxandroid:1.1.0'
        compile 'com.hannesdorfmann.mosby:mvp:2.0.1'
        compile 'com.annimon:stream:1.1.2'
        compile 'com.squareup.picasso:picasso:2.5.2'

        compile 'ru.somebible.android:statistic:0.0.5'

        testCompile 'junit:junit:4.12'
    }
}
dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

最重要的是,即使没有前缀 ApkCopy,也没有这样的过程。也就是说,在本地看问题是什么是不可能的,因为本地没有这样的过程,本地一切正常。直接请在正确的方向。

谢谢你的回答!

瓦布布

Gradle 正在尝试下载工件,ru.somebible.android:statistic但未能下载,因为它无法在任何已知的工件存储库中找到它。我假设该工件已发布在此存储库中:'http://jenkins01.mobile.somebible.ru:7700/nexus/content/repositories/somebible-internal/'

在这种情况下,请确保您的构建机器可以访问此存储库,并确保可以在该存储库中实际找到该工件。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章