Android 库在 bintray 上发布但在 jcenter 上不可用
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 日:我获得批准
Your request to include your package /dekalo-stanislav/maven/assertions-android in Bintray's JCenter has been approved.
现在是 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
但是,如果我直接添加我的 repo,一切都会起作用,请参阅 build.greadle 中的注释块,但这并不是我想要实现的。
// maven {
// url 'https://dl.bintray.com/dekalo-stanislav/maven'
// }
所以,我的问题是 为什么我的库在 jcenter 上不可用,如何才能在 jcenter 上看到它。
很乐意提出任何建议,提前致谢。
我来自 JFrog Support-Team,根据您上面的问题,我们发现这是由于我们这边的临时问题(已修复)引起的。
我们已通过您的 Bintray 收件箱(在同一个包含请求线程中)回复您一些额外的说明。
如有任何其他问题,请随时通过 support@jfrog.com
与我们联系
埃兰
我有一个小图书馆https://bintray.com/dekalo-stanislav/maven/assertions-android 它在 bintray 上可用,但我无法从 jcenter() 获取它,请参阅下面的详细信息:
1月20日:发布0.0.1版本,并与jcenter同步。
1 月 21 日:我获得批准
Your request to include your package /dekalo-stanislav/maven/assertions-android in Bintray's JCenter has been approved.
现在是 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
但是,如果我直接添加我的 repo,一切都会起作用,请参阅 build.greadle 中的注释块,但这并不是我想要实现的。
// maven {
// url 'https://dl.bintray.com/dekalo-stanislav/maven'
// }
所以,我的问题是 为什么我的库在 jcenter 上不可用,如何才能在 jcenter 上看到它。 很乐意提出任何建议,提前致谢。
我来自 JFrog Support-Team,根据您上面的问题,我们发现这是由于我们这边的临时问题(已修复)引起的。 我们已通过您的 Bintray 收件箱(在同一个包含请求线程中)回复您一些额外的说明。
如有任何其他问题,请随时通过 support@jfrog.com
与我们联系埃兰