Android
In this section, we explain how to get started with the StayTuned SDK for Android.
You should use the latest version of Android Studio in order to install the SDK.
Make sure that your project meet these requirements:
- API 22 and above
- Jetpack (Android X)
- Java 8
We recommend you to install the SDK by using Gradle:
Add the following line to your module's
build.gradle
dependencies:implementation 'com.github.StayTunedAds:staytuned-android-sdk:1.0.21'
Add it in your root
build.gradle
at the end of repositories: allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
As the StayTuned SDK uses features from Java 1.8, you may need to add the desugaring library to your app to allow devices with API < 24 to run your app
android {
// ...
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// ...
}
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.10'
// ...
}
Last modified 1yr ago