Android库在bintray上发布但在jcenter

时间:2017-01-23 13:53:23

标签: android maven bintray jcenter

我有小型图书馆https://bintray.com/dekalo-stanislav/maven/assertions-android 它可以在bintray上找到,但我无法从jcenter()获得,请参阅下面的详细信息:

1月20日:版本0.0.1已发布,并与jcenter同步。

1月21日:我获得了批准

  

您在Bintray的JCenter中包含您的包/ dekalo-stanislav / maven / assertions-android的请求已获批准。

现在是1月23日,jcenter()

上没有图书馆

的build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
//        maven {
//            url 'https://dl.bintray.com/dekalo-stanislav/maven'
//        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

应用程序/的build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "com.example.myapplication"
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'ua.com.dekalo.android:assertions-android:0.0.1'
}

如果我尝试构建应用程序:

./gradlew assemble --info

它试图从jcenter.bintray.com获取库:

Resource missing. [HTTP GET: https://jcenter.bintray.com/ua/com/dekalo/android/assertions-android/0.0.1/assertions-android-0.0.1.pom]
Resource missing. [HTTP HEAD: https://jcenter.bintray.com/ua/com/dekalo/android/assertions-android/0.0.1/assertions-android-0.0.1.jar]

结果是下一个:

A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not find ua.com.dekalo.android:assertions-android:0.0.1.
     Required by:
         MyApplication2:app:unspecified

但是,如果我直接添加我的repo,一切都会有效,请参阅build.greadle中的注释块,但这不是我打算实现的。

//        maven {
//            url 'https://dl.bintray.com/dekalo-stanislav/maven'
//        }

所以,我的问题是为什么我的图书馆在jcenter 不可用,为了让它在jcenter中显示怎么做。 会对任何建议感到高兴,谢谢你。

1 个答案:

答案 0 :(得分:4)

我来自JFrog支持团队,并且根据您的上述问题,我们发现这是由于我们的一个临时问题(已经修复)造成的。 我们已通过您的Bintray收件箱(在相同的包含请求线程中)回复了您并附带了一些其他说明。

如有任何其他问题,请随时通过support@jfrog.com

与我们联系

叶兰

相关问题