अपने प्रोजेक्ट-लेवल की build.gradle फ़ाइल में यह जानकारी जोड़ें:

Kotlin

allprojects {
    repositories {

    }
}

Groovy

allprojects {
    repositories {

    }
}
ऐप्लिकेशन-लेवल की build.gradle फ़ाइल में यह जोड़ें:

Kotlin

dependencies {

}

Groovy

dependencies {

}
अपनी gradle.properties फ़ाइल में यह जोड़ें:
android.useandroidX=true
android.enableJetifier=true