如何使通过的build.gradle提供一个Android库? [英] How to make an Android Library available via build.gradle?

查看:151
本文介绍了如何使通过的build.gradle提供一个Android库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了,我想上传,使其可通过的build.gradle所有的Andr​​oid开发者一个Android库。我已经按照这些步骤这些步骤,但是这是第一次,我很这样做并不能达到它。我倒是AP preciate建议或指令从一些你已经做到了。

但我也不知道什么做我必须做的。我想使可用于所有的Andr​​oid开发者我的图书馆在他们的build.gradle写的东西是这样的:

 编译com.actionbarsherlock:actionbarsherlock:4.4.0@aar


解决方案

我试着用其他的答案提出的联系,但我觉得步骤是不够清楚......所以我不能让它工作(我想我可能是有罪的,以及不理解不够好)。

不管怎样,几个月后,我发现的这个超级酷的帖子了详细解释,并明确所有你必须​​为了上传您的开源库Maven和通过做出的gradle可用它遵循的步骤。由于之前回答的家伙,希望这可以帮助别人喜欢它帮助了我。

I made an android library that I'd like upload to make it available for all the android devs via build.gradle. I've followed these steps and these steps, but this is the first time that I'm doing this and can't achieve it. I'd appreciate advices or instructions from some of you that already made it.

But I'm not even sure what do I have to do. I wanna make my library available for all the android developers by writing something like this in their build.gradle:

compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'

解决方案

I tried with the links the other answers suggested but I think the steps were not clear enough... so I couldn't make it work (I think I might be guilty as well for not understanding well enough).

Anyways, a couple months later I found this super cool post that explains in detail and clear all the steps you have to follow in order to upload your open source library to maven and make it available via gradle. Thanks to the guys that answered before, hope this helps someone else like it helped me.

这篇关于如何使通过的build.gradle提供一个Android库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆