Skip to content Skip to sidebar Skip to footer

Adding Dependencies In Gradle

I am trying to move my Android project form IDEA to Android Studio with Gradle. However, I am having difficulties with the dependencies. I removed my 'lib' dir, so the jars would b

Solution 1:

You are missing this at the top level (i.e., a peer of android and dependencies):

repositories {
    mavenCentral()
}

The buildscript block has repositories and dependencies for the build process. You also need repositories and dependencies at the top level for the dependencies for your project itself.

Solution 2:

dependencies {
    compile'org.apache.commons:commons-lang3:3.4'
}

Add above line in your build.gradle file, this is the latest version.

Also you can check it from here:

mvnrepository, Apache Commons Lang » 3.4

Post a Comment for "Adding Dependencies In Gradle"