41

is there anything similar to bundler (ruby) and cocoa pods (ios) for managing dependencies in Android?

meow
  • 27,476
  • 33
  • 116
  • 177
  • What problems are you facing with library dependencies in Android so far? I haven't had any so I'm curious as to why you need a plugin/tool for it – Jesse Chen Dec 07 '12 at 22:15
  • 8
    well @JesseChen if you don't see the advantage of bundler or cocoapods I guess is because you haven't used them... take a look [here](http://gembundler.com/) or [here](http://cocoapods.org/) to understand the advantages of having an automated dependency management system – opsidao Jan 14 '13 at 15:05
  • 5
    @JesseChen once you used one, you cannot do without one. ;) – meow Dec 28 '13 at 08:09

2 Answers2

16

Gradle + Maven Central seems to be the Android equivalent.

Matthew
  • 6,356
  • 9
  • 47
  • 59
  • 2
    how to search libs ? I have tried to add lib (searched from maven repo)but I am not sure the lib name and version , and I compiled with failures – aelam Mar 06 '14 at 06:37
  • 2
    @aelam This is a pretty neat site that I use sometimes - http://gradleplease.appspot.com/ – Matthew Mar 06 '14 at 17:52
  • 1
    awesome, thanks !! if gradle has office solution like dependency searching and contributing,just as cocoapods, it would be very convenient!! – aelam Mar 07 '14 at 02:33
11

The maven-android plugin provides similar dependency management. If all of the dependencies are in Maven Central, a typically a simple mvn clean install will build your Android project.

SeanPONeil
  • 3,901
  • 4
  • 29
  • 42