Android

This guide describes how to add and use Apphud SDK to your Android app.

Latest Apphud SDK supports Google Play Billing 5.0

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)

Requirements

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.


What’s Next

Learn how to initialize SDK and manage purchases