Ata
Ata

Reputation: 12544

unable to add jitpack components in android studio

I am unable to add jitpack components in android studio

I have added these lines to my repositories

maven {
        url "https://jitpack.io"
    }
}

but still unable to add any jitpack repository like this

 compile 'com.github.HendrixString:Android-Zorn:e6d81f7a62'

I am using android studio 1.4

Upvotes: 1

Views: 4208

Answers (2)

Andrejs
Andrejs

Reputation: 27677

That project doesn't build because it's build file is incomplete. It missing this bit:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'
    }
}

The log: https://jitpack.io/com/github/HendrixString/Android-Zorn/e6d81f7a62/build.log

Upvotes: 1

Mohammad Hossein Gerami
Mohammad Hossein Gerami

Reputation: 1388

You Must Add it to Repository in app/build.gradle

repositories{
    maven { url "https://jitpack.io" }
}

and include your library in to dependencies

dependencies{
    compile 'com.github.HendrixString:Android-Zorn:e6d81f7a62'
}

Upvotes: 1

Related Questions