2017-01-23 37 views
0

我有小型圖書館https://bintray.com/dekalo-stanislav/maven/assertions-android 它可在bintray但我不能從jcenter得到它(),詳見下文:Android庫裏公佈了bintray,但目前還無法提供jcenter

01月20日:版本0.0。 1已發佈,並與jcenter同步。

1月21日:我得到了批准

您的要求,包括你的包/ dekalo - 斯坦尼斯/行家/斷言,機器人在Bintray的JCenter已獲批准。

現在是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 

但是,如果我會直接加我的回購協議,一切都將正常工作,看到評論框在build.greadle中,但這不是我想要實現的。

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

所以,我的問題是爲什麼我的圖書館目前還無法提供jcenter怎樣做才能得到它在jcenter可見。 會很高興爲您提供任何建議,謝謝您提前。

+0

瀏覽通過jCenter這裏沒有顯示你的包[http://jcenter.bintray.com/ ua/com /](http://jcenter.bintray.com/ua/com/) 將圖書館推送到bintray後,你是否進入包頁面併發布它? – Mauin

回答

3

我來自JFrog支持團隊,並按照上面的問題,我們發現這是由於我們的一個臨時問題(已經修復)造成的。 我們已經通過您的Bintray收件箱(在同一個包含請求線程中)和一些附加說明回覆了您。

如有其他問題,請隨時通過[email protected]伸手

葉蘭

+1

謝謝你Eran。 最初我以爲這是在我身邊。 –

相關問題