我工作了两天,在maven中心部署我的
github库
CircularImageView,使用它与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'