All Products
Search
Document Center

Mobile Platform as a Service:Check build script configuration

Last Updated:Feb 04, 2026

This topic describes the checks to perform on the build script configuration after you add components and before you write code.

Procedure

  1. Check the configuration of the build.gradle file in the root directory.

    1. Specifies whether easyconfig has been imported.

      classpath 'com.android.boost.easyconfig:easyconfig:?'
    2. Indicates whether a baseline version is specified.

      ext.mpaas_artifact = "mpaas-baseline"
      ext.mpaas_baseline = "10.1.68-41"
  2. Check the configuration in the App directory to confirm that the easyconfig plugin is applied.

    apply plugin: 'com.alipay.apollo.baseline.config'
  3. Check the version of the Android Gradle Plugin.

    Search for com.android.tools.build:gradle in the project to determine the Android Gradle Plugin version.

    • If you use an Android Gradle Plugin version earlier than 4.0, no special configuration is required.

    • If you use Android Gradle Plugin 4.0 to 7.0, add android.enableResourceOptimizations=false to the gradle.properties file. In the signing configuration of the App project's build.gradle file, also add the line v1SigningEnabled true. The following code shows a complete example:

      android {
          ...
          signingConfigs {
              release {
                  ...
                  v1SigningEnabled true
              }
              debug {
                  ...
                  v1SigningEnabled true
              }
          }
      }
    • If you use Android Gradle Plugin 7.0 or later, you must also upgrade easyconfig to version 2.8.4 in the build.gradle file in the root directory.

      classpath 'com.android.boost.easyconfig:easyconfig:2.8.4'