无法解析Android库Bintray JCenter

时间:2018-09-25 18:47:15

标签: android gradle android-library bintray

我创建了一个Android库,并上传到bintray.com

https://bintray.com/vsay01/maven/androidcommonutils

它也链接到JCenter。

在应用程序的gradle中,我添加了:

implementation 'com.vsay01.utils:androidcommonutils:1.0.0'

在我的项目中,我添加了:

allprojects {
    repositories {
        jcenter()
        google()
        maven {
            url 'https://dl.bintray.com/vsay01/maven'
        }
    }
}

同步gradle时,出现错误:

Failed to resolve: androidcommonutils

谁能指出这可能是什么问题?

[编辑] 图书馆信息:

ext {
    bintrayRepo = 'maven'
    bintrayName = 'androidcommonutils'

    publishedGroupId = 'com.vsay01.utils'
    libraryName = 'AndroidCommonUtils'
    artifact = 'androidcommonutils'

    libraryDescription = 'Collections of practical Android common utils classes for developer'

    siteUrl = 'https://github.com/vsay01/AndroidCommonUtils'
    gitUrl = 'https://github.com/vsay01/AndroidCommonUtils.git'

    libraryVersion = '1.0.0'

    developerId = 'vsay01'
    developerName = 'Vortana Say'
    developerEmail = 'sayvortana.itc@gmail.com'

    licenseName = 'The Apache Software License, Version 2.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]
}

谢谢

1 个答案:

答案 0 :(得分:0)

artifactId androidcommonutils下,您只有.pom文件,并且缺少工件。
您的工件位于androidutilslibrary下。

您需要移动pom或工件才能使用正确的artifactId

相关问题