Android
Google implementation
Step 1. Declare repositories
repositories {
//.. other repositories
mavenCentral()
}Step 2. Add Gradle Build Dependencies
dependencies {
// Requirement
implementation ("com.google.code.gson:gson:*.*.*")
implementation ("com.google.android.gms:play-services-ads-identifier:*.*.*")
// Starting from version 2.2.3 and above, it is required
implementation ("com.devtodev:android-google:*.*.*")
// if you use AAR (recommended) or JAR downloaded from GitHub, please add:
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.aar"))))
// or just add the dependency, get the latest version from
// https://mvnrepository.com/artifact/com.devtodev/android-analytics
implementation ("com.devtodev:android-analytics:*.*.*")
// Optional (recommended)
implementation ("com.android.installreferrer:installreferrer:*.*.*")
}dependencies {
// Requirement
implementation 'com.google.code.gson:gson:*.*.*'
implementation 'com.google.android.gms:play-services-ads-identifier:*.*.*'
// Starting from version 2.2.3 and above, it is required
implementation 'com.devtodev:android-google:*.*.*'
// if you use AAR (recommended) or JAR downloaded from GitHub, please add:
implementation fileTree(dir: "libs", include: ["*.aar"])
// or just add the dependency, get the latest version from
// https://mvnrepository.com/artifact/com.devtodev/android-analytics
implementation 'com.devtodev:android-analytics:*.*.*'
// Optional (recommended)
implementation 'com.android.installreferrer:installreferrer:*.*.*'
}Peculiarities of working with dependencies
Huawei implementation
Step 1. Declare repositories
Step 2. Add Gradle Build Dependencies
Step 3. AppGallery
SDK Initialization
SDK obfuscation rules
Apps targeted at children
Last updated
Was this helpful?
