1. Ensure that your Minimum SDK version is at least API level 16 or above ( Android 4.1 ). In case your android project compiles for API level below 16, you can include the following line in your AndroidManifest.xml file to avoid any compilation issues :

<uses-sdk tools:overrideLibrary=""/>

Using this would ensure that the sdk works normally for API level 16 & above, and would be disabled for API level < 16 Please make sure that you put the necessary API level checks before accessing the SDK methods in case compiling for API level < 16

2. Add the provided truesdk-0.7-releasePartner.aar file into your libs folder. Example path: /app/libs/

3. Open the build.gradle of your application module and ensure that your lib folder can be used as a repository :

repositories {
flatDir {
dirs 'libs'

Secondly add the compile dependency with the latest version of the TrueSDK aar :

dependencies {
implementation(name: "truesdk-0.7-releasePartner", ext: "aar")

Add the following dependencies within your gradle file :

implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.okhttp3:okhttp:3.7.0'