Maven – Importing Maven dependency


I'm trying to include ViewPagerIndicator into my project and I'd rather use the Maven dependency rather than importing the android library project. There's some code posted for maven


and inside the sample project, that code is in a pom.xml file, but I don't have that file. Can I translate the above code into my build.gradle file? Or can I just create a pom.xml file and put it in my project?

Best Solution

You should ask the author JakeWharton to make an aar available on Maven Central. (vote here: Until then there is a temporary solution to use maven repo from community.

repositories {
    maven {
        url ''

dependencies {
    compile 'com.actionbarsherlock:viewpagerindicator:2.4.1'