All Products
Search
Document Center

Mobile Platform as a Service:Resolve fastjson conflicts

Last Updated:Feb 06, 2026

Conflict description

mPaaS uses fastjson to parse JSON data. If your project also uses fastjson, a dependency conflict will occur.

Solution

Remove fastjson-build from mPaaS.

Procedure

  1. Confirm the fastjson version that mPaaS uses.

    'com.alibaba:fastjson:1.x.x.android@jar'
  2. Obtain the group:artifact information of the third-party software development kit (SDK) that mPaaS uses.

    'com.alipay.android.phone.thirdparty:fastjson-build'
  3. Remove the mPaaS library.

    • AAR method: If you integrate mPaaS using the native Android Archive (AAR) method, you do not need to remove the library. Gradle automatically uses the higher version due to dependency transitivity. The version provided by mPaaS is highly stable and secure. We recommend that you use the mPaaS version. If the versions differ, you must test the mPaaS features to ensure stability before you release your application.

    • Component-based (Portal & Bundle)

      mpaascomponents {
      excludeDependencies = [
        "com.alipay.android.phone.thirdparty:fastjson-build"
      ]
      }