For Android Gradle Plugin 7.0 and newer, please follow instructions below.

1. Open Android Studio, locate gradle.build file in your project’s root directory and create a new buildscript section. The resulting file should look like:

buildscript {  
    repositories {  
        maven { url "https://maven.localazy.com/repository/release/" } 
    }  
    dependencies {  
        classpath "com.localazy:gradle:1.5.4"  
    }    
}  
  
plugins {  
    id 'com.android.application' version '7.4.0' apply false  
    id 'com.android.library' version '7.4.0' apply false  
    id 'org.jetbrains.kotlin.android' version '1.7.20' apply false  
}

2. Open the settings.gradle file and add Localazy repository maven { url "https://maven.localazy.com/repository/release/" } like this:

pluginManagement {  
    repositories {  
        google()  
        mavenCentral()  
        gradlePluginPortal()  
    }  
}  
dependencyResolutionManagement {  
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)  
    repositories {  
        maven { url "https://maven.localazy.com/repository/release/" }  
        google()  
        mavenCentral()  
    }  
}  
rootProject.name = "my-awesome-app"  
include ':app'

3. Open gradle.build file in your app’s module and add following snippet a the end of the file:

// Always be sure to add this after android { ... } section
apply plugin: 'com.localazy.gradle'
 
localazy {
    readKey "the-read-key-for-the-project"
    writeKey "the-write-key-for-the-project"
    injection {
	    installRepositories false
    }
}

Read more about injection options to configure what type of library is injected and whether OTA updates are available for all users or loyal ones only.

Now, you can configure the plugin.