gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 15:40:11 25 4
gpt4 key购买 nike

我有小图书馆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() 上不可用

构建.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 中的注释 block ,但这并不是我想要实现的。

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

所以,我的问题是为什么我的库在 jcenter 上不可用 以及如何使它在 jcenter 上可见。很乐意提出任何建议,在此先感谢您。

最佳答案

我来自 JFrog 支持团队,根据您的上述问题,我们发现这是由于我们这边的临时问题(已修复)造成的。我们已通过您的 Bintray 收件箱(在同一个包含请求线程中)回复您一些额外的说明。

如有任何其他问题,请随时通过 support@jfrog.com 与我们联系

艾兰

关于在 bintray 上发布但在 jcenter 上不可用的 Android 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41807988/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com