Fakher
Fakher

Reputation: 2128

Error in adding dependency in Android Studio

I am adding this library to my project. I followed the instructions. I put th project under app/lib. the problem is when i add :

compile project(':lib:paralloid:paralloid')
compile project(':lib:paralloid:paralloidviews')

an error message in generated:

Error:(26, 0) Project with path ':lib:paralloid:paralloid' could not be found in project ':app'.

Upvotes: 1

Views: 242

Answers (2)

Harsh Dattani
Harsh Dattani

Reputation: 2129

Seems like you haven't specified mavenCentral() as a repository. In build.gradle file, you need to specify which repository to use when resolving dependencies for building your project. Add mavenCentral() repository in build.gradle file like this:

repositories {
    mavenCentral()
}

And add library to your project

dependencies {
    compile 'uk.co.chrisjenx.paralloid:paralloid:0.1.+'
}

Upvotes: 1

Tofasio
Tofasio

Reputation: 425

Have you tried the other option they give?

dependencies {
    compile 'uk.co.chrisjenx.paralloid:paralloid:0.1.+'
}

Upvotes: 0

Related Questions