mPaaS SDK 10.1.68.21 and later support the armeabi-v7a and arm64-v8a architectures in addition to armeabi. If your application requires multi-architecture support, use the mPaaS plugin to update the SDK to version 10.1.68.21 or later, then update the Gradle configuration and perform regression testing as described in this topic.
If your application only needs armeabi support, update the SDK to version 10.1.68.21 or later. No other changes are required.
Update the configuration
Overall compatibility
-
Native AAR and Portal & Bundle connection types
-
armeabi, armeabi-v7a, and arm64-v8a architectures
-
targetSdkVersion 26 to 29
-
Android 11 is supported.
Publishing on Google Play
If your application uses the mPaaS location component or the map feature in miniapps and needs to be published on Google Play, remove the mPaaS built-in AMAP SDK and replace it with a Google Play-compliant AMAP SDK version. For details, see the following topics:
Update the Gradle configuration
Native AAR
Update the Gradle version to 5.0 or later. Version 6.2 is recommended. If a later version fails to compile, use version 6.2.
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
Portal & Bundle
Update the Gradle version to 5.0 or later. Version 6.2 is recommended. If a later version fails to compile, use version 6.2.
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
Update the Android Gradle Plugin (AGP) version:
For Portal & Bundle, modify the build.gradle file in the root directory of the Portal project and each Bundle project.
classpath 'com.alipay.android:android-gradle-plugin:3.5.18'
classpath 'com.android.tools.build:gradle:3.5.3' // Minimum version: 3.5.0
Generate an APK
Set the CPU architecture
-
For native AAR, set the architecture in the
build.gradlefile of the main project module. -
For Portal & Bundle: To generate an APK, set the architecture in the
build.gradlefile of the main Portal project module. To generate a Bundle, set the architecture in thebuild.gradlefile of the main Bundle project module.
Set `abiFilters` as follows:
ndk {
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a"
}
Compile
No special configuration is required. Compile as usual.
Regression testing
Perform full regression testing on the APK for each architecture. Focus on the following components, if you use them:
|
Component |
Validation item |
|
Mobile Gateway |
|
|
Hotpatching |
|
|
Scan |
|
|
Unified Storage |
|
|
Share |
|
|
OCR |
|
|
Audio and video |
|