Complete these preparations before integrating mPaaS into your Android Studio project.
Before adding mPaaS to your project, complete the following tasks.
Install Android Studio
-
Download Android Studio from Android Developers.
-
Follow the Installation Guide to install Android Studio.
-
If you upgrade Android Studio with the mPaaS plugin installed, upgrade the plugin to the latest version. Update the mPaaS plugin.
Install the Android Studio mPaaS plugin
mPaaS requires the Android Studio mPaaS plugin. Install it before proceeding. Install the mPaaS plugin.
Register an Alibaba Cloud account
The mPaaS console requires an Alibaba Cloud account. Register an Alibaba Cloud account.
Activate mPaaS
Log on to the Alibaba Cloud Management Console. On the mPaaS product page, click Management Console. On the Activate Product page, click Activate Now.
Configure CPU architecture and targetSdkVersion
mPaaS supports armeabi, armeabi-v7a, and arm64-v8a CPU architectures. You can set targetSdkVersion to 26 (default), 28, 29, 30, 31, 33, 34, or 35. Add the following configuration to the `build.gradle` file of your project's main module.
android {
...
defaultConfig {
...
targetSdkVersion 26
ndk{
abiFilters 'armeabi'
}
...
}
...
}
The following guides cover other supported `targetSdkVersion` values:
For integration questions, join DingTalk group 145930007362. The group includes the mPaaS public cloud Q&A assistant for common questions.