0

I'm developing my own library for android. I want to allow other developers to use my library via the dependencies section in the gradle file. What should I do in order to enable this?

Thanks.

2
  • 1
    Build an AAR or a JAR (depending if your library needs resources) and publish it to Maven Central or JCenter. Commented Dec 23, 2014 at 8:44
  • To add to what @pdegand59 contributed, click here, its googles explanation of the maven android plugin. Commented Dec 23, 2014 at 9:02

1 Answer 1

1

You need to deploy your library to Bintray and link your package to JCenter (that's the default repository configured when you create a new project with Android Studio).

Here are some instructions on how to get started.

Please note that Bintray does not support SNAPSHOTs, but you can get a free account in oss.jfrog.org if you have a Bintray package linked to JCenter.

Here a project example that has all the pieces in place (look for gradle scripts in /gradle directory)

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.