[英]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.