android-gradle Declare Dependencies How to add a repository


Example

To download dependencies, declare the repository so Gradle can find them. To do this, add a repositories { ... } to the app/ module's build.gradle in the top-level file.

repositories {
  // Gradle's Java plugin allows the addition of these two repositories via method calls:
  jcenter()
  mavenCentral()

  maven { url "http://repository.of/dependency" }

  maven { 
      credentials {
          username 'xxx'
          password 'xxx'
      }

  url 'http://my.maven
  }
}