我可能遗漏了什么,但我不明白。您可以如何以及在何处发布您的库(使用 Android Studio 作为模块完成)以便人们只需编写(例如)
compile 'se.emilsjolander:stickylistheaders:2.5.2'
在他们的 build.gradle
中?
我看到了 jCenter 存储库之类的东西,但我没有打包经验,发现它很困惑。
感谢您的帮助! :)
编辑
当然,我想在Apache下发布一个github项目:)
最佳答案
https://jitpack.io/如果你只是想在github上发布一个android库也是一个不错的选择。
有一个example
关于android - 如何为 Android Studio 打包 Android 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29578889/