无法在 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 

My 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/'

在这种情况下,请确保您的生成计算机有权访问此存储库,并确保该项目实际上可以在该存储库中找到。

最新更新