[英]Failed to resolve Android Library Bintray JCenter
I created an Android Library and upload to bintray.com 我创建了一个Android库,并上传到bintray.com
https://bintray.com/vsay01/maven/androidcommonutils https://bintray.com/vsay01/maven/androidcommonutils
It was link to JCenter as well. 它也链接到JCenter。
In my gradle of the app, I added: 在应用程序的实现中,我添加了:
implementation 'com.vsay01.utils:androidcommonutils:1.0.0'
In my gradle of the project, I added: 在该项目的实现中,我添加了:
allprojects {
repositories {
jcenter()
google()
maven {
url 'https://dl.bintray.com/vsay01/maven'
}
}
}
When sync the gradle, I got the error: 同步gradle时,出现错误:
Failed to resolve: androidcommonutils
Could anyone point out what could be wrong for this ? 谁能指出这可能是什么问题?
[EDITED] Library information: [编辑]图书馆信息:
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"]
}
Thanks 谢谢
Under the artifactId androidcommonutils
you have only the .pom
file and missing the artifacts. 根据artifactId的 androidcommonutils
你只有.pom
文件和失踪的假象。
Your artifacts are located under androidutilslibrary
. 您的工件位于androidutilslibrary
下。
You need to move the pom or the artifacts to use the correct artifactId
. 您需要移动pom或工件以使用正确的artifactId
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.