其他分享
首页 > 其他分享> > 将GitHub Android库发布到Maven Central

将GitHub Android库发布到Maven Central

作者:互联网

我工作了两天,在maven中心部署我的githubCircularImageView,使用它与gradle依赖,如下所示:

compile 'com.mikhaellopez:circularimageview:2.0.0'

我按照本教程写了这封信:Publish an aar file to jCenter with Gradle但是无所事事我无法以这种方式访问​​我的图书馆.

请帮我知道我做错了什么..

链接:

> Bintray Repos:https://bintray.com/lopspower/maven/com.mikhaellopez%3Acircularimageview/view
> Sonatype问题:https://issues.sonatype.org/browse/OSSRH-18203

编辑:2015年10月14日

要在0700的步骤16中最终与Maven Central同步,您需要一个用户令牌密码.我怎么做到的?

Bintray回答:

Hi, The “User token password” is not taken from Bintray, it can be found in your Maven Central account. Please see further information on syncing with Maven here: 07005 Regards Bintray Team

最后,目前尚不清楚,但“用户令牌密码”实际上对应于您的Sonatype帐户的密码.现在该项目通常是同步,但我仍然无法访问该项目:

Failed to resolve: com.mikhaellopez:circularimageview:2.0.0

解决方法:

您可以在bintray HERE中查看所有库.
我意识到我的图书馆很好,但路径不同.

的确,在Android Studio模块名称中非常重要.所以我在“circularimageview”中重命名为“CircularImageView-Library”.我再次与新版本同步,现在它可以工作.

我可以像gradle一样访问我的图书馆:

compile 'com.mikhaellopez:circularimageview:2.0.1'

我编辑教程:https://github.com/lopspower/gradle-jcenter-publish

标签:android,gradle,maven,sonatype,bintray
来源: https://codeday.me/bug/20190702/1357601.html