簡體   English   中英

無法解析Android庫Bintray JCenter

[英]Failed to resolve Android Library Bintray JCenter

我創建了一個Android庫,並上傳到bintray.com

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

它也鏈接到JCenter。

在應用程序的實現中,我添加了:

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"]
}

謝謝

根據artifactId的 androidcommonutils你只有.pom文件和失蹤的假象。
您的工件位於androidutilslibrary下。

您需要移動pom或工件以使用正確的artifactId

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM