logo
On this page

Migrating to ZEGOCLOUD Maven

  1. Add the jitpack configuration.
  • If your Android Gradle Plugin is 7.1.0 or later: enter your project's root directory, open the settings.gradle file to add the jitpack to dependencyResolutionManagement > repositories like this:

    Untitled
    dependencyResolutionManagement {
        repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
        repositories {
            google()
            mavenCentral()
            maven { url 'https://storage.zego.im/maven' }  // <- Add this line.
            maven { url 'https://www.jitpack.io' } 
        }
    }
    
    1
    Copied!
    Warning

    If you can't find the above fields in settings.gradle, it's probably because your Android Gradle Plugin version is lower than v7.1.0.

    For more details, see Android Gradle Plugin Release Note v7.1.0.

  • If your Android Gradle Plugin is earlier than 7.1.0: enter your project's root directory, open the build.gradle file to add the jitpack to allprojects->repositories like this:

    Untitled
    allprojects {
        repositories {
            google()
            mavenCentral()
            maven { url 'https://storage.zego.im/maven' }   // <- Add this line.
            maven { url "https://jitpack.io" } 
        }
    }
    
    1
    Copied!

On this page

Back to top