[英]Android library published on bintray but is not available at jcenter
我有一個小型圖書館https://bintray.com/dekalo-stanislav/maven/assertions-android,它在bintray上可用,但我無法從jcenter()獲得它,請參見以下詳細信息:
1月20日:發布了0.0.1版,並與jcenter同步。
1月21日:我獲得批准
您的將/ dekalo-stanislav / maven / assertions-android軟件包包含在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
}
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'
}
如果我嘗試構建應用程序:
./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上可見 。 如有任何建議,我們將不勝感激,謝謝您。
我來自JFrog支持團隊,在您回答上面的問題之后,我們發現這是由於我們端的暫時性問題(已解決)引起的。 我們已經通過您的Bintray收件箱(在相同的收錄請求線程中)回復了您,並提供了一些其他說明。
如有其他疑問,請隨時通過support@jfrog.com與我們聯系。
伊朗
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.