Android
This guide describes how to add and use Apphud SDK to your Android app.
Limitations
Apphud has a full support of Android with the following limitations:
- Only Google Play Store is currently supported (App Gallery, Amazon and other stores are not supported)
- Only Backwards Compatible subscriptions are supported. Read more.
Requirements
-
Apphud SDK requires minimum Android 4.1 and supports only Google Play Store.
-
Google Play Service Account Credentials file is required to be uploaded to Apphud.
Installation
Add the following lines to your build.gradle
file:
repositories {
google()
mavenCentral() // if using Maven Central
}
allprojects {
repositories {
...
mavenCentral() // if using Maven Central
maven { url 'https://jitpack.io' } // if using Jitpack
}
}
dependencies {
// if using Maven Central
implementation 'com.apphud:ApphudSDK-Android:{LATEST_VERSION_NUMBER}'
// if using Jitpack
implementation 'com.github.apphud:ApphudSDK-Android:{LATEST_VERSION_NUMBER}'
}
Replace LATEST_VERSION_NUMBER
with the latest version from our Github Tags page.
Updated 3 months ago