All Products
Search
Document Center

Mobile Platform as a Service:Adapt mPaaS to targetSdkVersion 35

Last Updated:Jun 09, 2025

Starting from mPaaS 10.2.3.63, mPaaS has added support for targetSdkVersion 35. If your application needs to upgrade targetSdkVersion to 35, use the mPaaS plugin to update the SDK to baseline version 10.2.3.63 or later, and follow the instructions below to adapt and perform regression testing on related features.

Adapt to targetSdkVersion 35

Prerequisites

Please refer to the following documents to ensure that your application has completed the adaptation to previous targetSdkVersion versions:

Modify targetSdkVersion

AAR integration method

Modify the targetSdkVersion attribute to 35 in the build.gradle file under the main module of your project.

Portal & Bundle integration method

Not supported. If you need to adapt to targetSdkVersion 35, you must switch to the AAR integration method.

Important

With the continuous updates of the Android system, the adaptation and maintenance costs of the Portal & Bundle integration method are also increasing. At some point in the future, the Portal & Bundle integration method may completely stop supporting the new version of the Android system. We recommend that you switch to the AAR integration method as soon as possible.

Adaptation content

Interface changes - Window inset changes

Applications running on Android 15 and above devices will be displayed without borders by default. For more information, see official documentation.

If the components you have integrated display abnormally due to this change, you can prevent this feature from taking effect by configuring the windowOptOutEdgeToEdgeEnforcement attribute in your application's theme.

The following example shows how to configure the windowOptOutEdgeToEdgeEnforcement attribute in the theme.

  • Set following code in the style.xml file:

    <resources>
        <style name="AppTheme">
            <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
        </style>
    </resources>
  • Set following code in AndroidManifest.xml:

    <application android:theme="@style/AppTheme">
    </application>
Important

To use this attribute, you need to upgrade compileSdk to 35. At the same time, the minimum gradle version must be 8.7 and the minimum AGP version must be 8.6.0. Otherwise, compilation failure or other unexpected problems may occur.

Regression testing

  • Perform full regression testing, and the test devices must include devices running Android 15 or above.

  • In regression testing, you need to focus on the following component features (if used):

    Component

    Verification items

    Message push

    • Whether notifications can be displayed after receiving messages through self-built channels

    • Whether vendor channel message pushing works normally

    Mini Program

    • All features

    H5 container

    • All features

    Sharing

    • Whether sharing to various platforms works normally