M
M
mitaichik2015-05-19 13:22:25
Java
mitaichik, 2015-05-19 13:22:25

How to connect repository from jCenter to Gradle?

Hello. I'm trying to connect api for Yandex money in an android application. ( https://github.com/yandex-money/yandex-money-sdk-a... )
In build.gradle wrote:

buildscript {
    repositories {
        jcenter()
    }
}

dependencies {
    compile 'com.yandex.money.api:yandex-money-sdk-android:2.0.1'
}

But I get the error
Error:(40, 13) Failed to resolve: com.yandex.money.api:yandex-money-sdk-android:2.0.1
How to connect it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Abramov, 2015-05-19
@mitaichik

these bad people have an error in their own documentation

allprojects {
repositories {
        jcenter()
    }
}

not in the buildscript section.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question