android tutorial - How to add a repository in android | Developer android - android app development - android studio - android app developement



To download dependencies, declare the repository so Gradle can find them. To do this, add ato the app/ module'sin the top-level file.

repositories { ... }build.gradle
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
  }
}
click below button to copy code from our android learning website - android tutorial - team

Related Searches to How to add a repository in android