Download the Android SDK
Prerequisites
- Target API 21+ and use Gradle 6.1.1 or above.
- Use compileSdkVersion 31 or above.
- If you use Proguard, make sure to read this.
Important
- It’s required to update your app-ads.txt file to be able to see the ads.
- It’s mandatory to use a privacy dialog if your target audience includes children under 13, otherwise you need to set the legal frameworks manually in order to comply with the app stores policies and also avoid any revenue loss.
1. Add the repositories
Open your project level build.gradle
and add the following repositories if your app is not enrolled in Designed for Families program.
mavenCentral()
maven { url "https://artifact.bytedance.com/repository/pangle" }
maven { url "https://android-sdk.is.com" }
maven { url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea" }
Add these repositories to use Lite SDK and reduce the size of your build.
mavenCentral()
maven { url "https://android-sdk.is.com" }
maven { url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea" }
Note
If you’re using Android Studio Arctic Fox, the repositories should be added in settings.gradle
.
Visit this page to check the ad networks available in each SDK.
2. Import the SDK
Open your app level build.gradle
and add the following dependency if your app is not enrolled in Designed for Families program.
implementation 'com.yodo1.mas:full:4.9.2'
Add this dependency to use Lite SDK.
implementation 'com.yodo1.mas:lite:4.9.2'