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

前端 未结 3 1392
感动是毒
感动是毒 2021-01-14 16:30

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 f

相关标签:
3条回答
  • 2021-01-14 16:57

    Follow these instructions : http://gmariotti.blogspot.in/2013/09/publish-aar-file-to-maven-central-with.html , https://github.com/chrisbanes/gradle-mvn-push

    0 讨论(0)
  • 2021-01-14 16:58

    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.

    0 讨论(0)
  • 2021-01-14 17:06

    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

    0 讨论(0)
提交回复
热议问题