简体   繁体   English

在Bintray上发布的Android库,但在jcenter上不可用

[英]Android library published on bintray but is not available at jcenter

I have small library https://bintray.com/dekalo-stanislav/maven/assertions-android It is available at bintray but I can not get it from jcenter(), see details below: 我有一个小型图书馆https://bintray.com/dekalo-stanislav/maven/assertions-android,它在bintray上可用,但我无法从jcenter()获得它,请参见以下详细信息:

20 Jan: Version 0.0.1 was published, and synced with jcenter. 1月20日:发布了0.0.1版,并与jcenter同步。

21 Jan: I got approval 1月21日:我获得批准

Your request to include your package /dekalo-stanislav/maven/assertions-android in Bintray's JCenter has been approved. 您的将/ dekalo-stanislav / maven / assertions-android软件包包含在Bintray的JCenter中的请求已获批准。

Now it is 23 Jan and library is not available at jcenter() 现在是1月23日,图书馆在jcenter()上不可用

build.gradle 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
}

app/build.gradle app / 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'
}

If I try build application: 如果我尝试构建应用程序:

./gradlew assemble --info

It tries to get library from jcenter.bintray.com: 它尝试从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]

And result is next: 结果是下一个:

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

However if I will add my repo directly, all will work, see commented block in build.greadle, but it is not that I intended to achieve. 但是,如果我将直接添加我的仓库,那么一切都会起作用,请参见build.greadle中的注释块,但这并不是我想要实现的。

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

So, my questions is why my library is not available at jcenter and what to do to get it visible at jcenter . 因此,我的问题是为什么我的库在jcenter上不可用,以及如何使它在jcenter上可见 Will be happy for any suggestions, thank you in advance. 如有任何建议,我们将不胜感激,谢谢您。

I am from the JFrog Support-Team, and following your question above, we have found that this was caused due to an temporary issue on our end (already fixed). 我来自JFrog支持团队,在您回答上面的问题之后,我们发现这是由于我们端的暂时性问题(已解决)引起的。 We have replied to you through your Bintray inbox (on the same inclusion request thread) with some additional instructions. 我们已经通过您的Bintray收件箱(在相同的收录请求线程中)回复了您,并提供了一些其他说明。

For any further questions, please feel free to reach out through support@jfrog.com 如有其他疑问,请随时通过support@jfrog.com与我们联系。

Eran 伊朗

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM