This topic describes the checks to perform on the build script configuration after you add components and before you write code.
Procedure
Check the configuration of the
build.gradlefile in the root directory.Specifies whether easyconfig has been imported.
classpath 'com.android.boost.easyconfig:easyconfig:?'Indicates whether a baseline version is specified.
ext.mpaas_artifact = "mpaas-baseline" ext.mpaas_baseline = "10.1.68-41"
Check the configuration in the App directory to confirm that the easyconfig plugin is applied.
apply plugin: 'com.alipay.apollo.baseline.config'Check the version of the Android Gradle Plugin.
Search for
com.android.tools.build:gradlein 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=falseto thegradle.propertiesfile. In the signing configuration of the App project'sbuild.gradlefile, also add the linev1SigningEnabled 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.gradlefile in the root directory.classpath 'com.android.boost.easyconfig:easyconfig:2.8.4'