How to make an Android Library available via build.gradle?

痞子三分冷 提交于 2019-12-01 09:29:55

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.

Gradle Fetch the Dependency libraries from Maven Repository you have to upload the package to the Maven Repo or just put the library in the /libs folder and put this under dependencies block:

compile fileTree(include: ['*.jar'], dir: 'libs')

You can see a guide to upload a library to the maven repo Here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!