Download the Android SDK

Prerequisites

  1. You need to target API 19+ and use Gradle 6.1.1 or above
  2. You need to use compileSdkVersion 31 or above from MAS SDK 4.6.1
  3. If you use Proguard, make sure to read this

This guide will help you integrate MAS in any Android project (Native, Cocos2d-x, …), but we recommend the use of Android Studio.

1. Open Your Project-Level build.gradle  and Add the repositories

				
					mavenCentral()
maven { url "https://artifact.bytedance.com/repository/pangle" }
maven { url "https://android-sdk.is.com" }
maven { url "https://sdk.tapjoy.com/" }
				
			

Use the code below if you need to comply with the Google Family Policy.

				
					mavenCentral()
maven { url "https://android-sdk.is.com" }
maven { url "https://sdk.tapjoy.com/" }
				
			

Use the code below if you need to use a lightweight SDK.

				
					mavenCentral()
				
			

Note: If you create your project under Android Studio Arctic Fox, the repositories should be added to settings.gradle

2. Open Your App-Level build.gradle and Add the Relevant Code

2.1 If you’re only targeting children under 13 years of age, please add this Gradle dependency to be compliant with Google’s Designed for Families program:

				
					implementation 'com.yodo1.mas:google:4.6.6'
				
			

2.2 If you’re targeting all ages, or 13+, use this Gradle dependency to access Full MAS:

				
					implementation 'com.yodo1.mas:full:4.6.6'

				
			

2.3 If you are an app, not a game developer, we recommend MAS for Apps. It offers similar performance and the same convenience as Full MAS, but adds half the MB of Full MAS:

				
					implementation 'com.yodo1.mas:lite:4.6.6'
				
			
CONTENTS