Android FAQ

What platform architectures does MAS support?
MAS supports various platform architectures. Please configure your game’s architecture in the project under the label “defaultConfig” in the “build.gradle” file as required by the app. Avoid exceptions caused by using unnecessary platform architectures.

Example:

defaultConfig {
ndk {
abiFilters “x86”, “armeabi”
}
}
What permissions are required for MAS SDK?
MAS SDK requires the following permissions:

<uses-permission android:name=”android.permission.READ_PHONE_STATE” />
<uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE” />
<uses-permission android:name=”android.permission.READ_EXTERNAL_STORAGE” />

MAS SDK will dynamically apply for these permissions when the device’s IP is from China.

NoteUsing Gradle dependencies, these permissions do not require any processing.
Review Permissions
After integrating MAS, please check whether the permissions in the app’s manifest file are restricted.

For example:

<uses-permission android:name=”android.permission.READ_EXTERNAL_STORAGE”
                               android:maxSdkVersion=”18″/>
<uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE”
android:maxSdkVersion=”18″/>

These settings block the obtaining of permissions on devices with higher versions of Android. Please add the “tools:node=”replace”” label on the the permissions you need:

<uses-permission android:name=”android.permission.READ_EXTERNAL_STORAGE”
tools:node=”replace”/>
<uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE”
tools:node=”replace”/> Copy

IMPORTANT! Failure to include these permissions negatively affects monetization. Several ad networks require these permissions to function correctly.
How can you address the issue of Android DEX 64K Methods Limit?
Android has a 64K method constraint. Since the game will include third-party libraries (including the MAS SDK), the opportunity to add all method sizes will exceed the limit. When your app and the libraries it references exceed 65,536 methods, you can click here to see how to enable multidex for apps with over 64K methods.
How can you check if MAS is in your APK?
1) If MAS is present, your APK will have the following structure:





2) The MAS initialization log will be in the console:
What is the minimum Android API version supported by MAS?
MAS SDK supports Android API version 19 and above.
What is the cause of the error below during testing with our demo?
Error:

NO FILL received:
..ID: “3ffe33014bc836be
..SDK KEY: “xcGD2fy-GdmiZQapx_kUSy5SMKyLoXBk8RyB5u9MVv34KetGdbl4XrXvAUFy0Qg9scKyVTI0NM4i_yzdXih4XE
..PACKAGE NAME: “com.yodo1.ads.demo.gp” ..Reason: [{“code”:1008,”msg”:”Ad unit info must include the adunit ID – please double-check that your package name \/ bundle id matches the one defined in the MAX Ad Unit ID being used”},{“code”:1009,”msg”:”Ad unit info must include the ad format – please double-check that your package name / bundle id matches the one defined in the MAX Ad Unit ID being used”}]

This issue is caused by an incorrect package name/bundle id. MAS includes many networks and most of them have a bundle-id verification mechanism. You have to use the real package name from your app to get live ads.
Updated on July 20, 2021

Was this article helpful?

Related Articles