All Products
Search
Document Center

Mobile Platform as a Service:Resolve utdid dependency conflict

Last Updated:Jun 16, 2026

When you use mPaaS together with other Alibaba SDKs, utdid dependency conflicts may occur. You can resolve these conflicts by removing the mPaaS utdid library and using the utdid provided by other Alibaba SDKs.

Conflict description

If you use mPaaS along with other Alibaba SDKs, utdid dependency conflicts may occur. Use the following solution to resolve these conflicts.

Solution

Remove the mPaaS utdid library and use the utdid provided by other Alibaba SDKs.

Procedure

  1. Confirm the version of the utdid SDK used by mPaaS so that you can select the same or a similar version.

    'com.taobao.android:utdid4all:1.5.1.3@jar'
  2. Get the group:artifact information for the utdid SDK used by mPaaS.

    'com.alipay.android.phone.thirdparty:utdid-build'
  3. Remove mPaaS utdid SDK.

    • AAR method

      configurations {
      all*.exclude group:'com.alipay.android.phone.thirdparty', module: 'utdid-build'
      }
    • Portal & Bundle method

      mpaascomponents {
      excludeDependencies = [
         "com.alipay.android.phone.thirdparty:utdid-build"
      ]
      }
  4. Add the API package.

    • Baselines 10.1.68.8 and lower

      If you are using the utdid-related API, download the JAR package utdid-build-1.1.5.3-api.jar.zip, and import compile/implementation to the project for compilation.

    • Baseline 10.1.68.9 and later versions

      No action is required.

Privacy Compliance

The old version of utdid reads and writes SD cards. To completely disable this behavior, update the utdid version by following these steps.

Procedure

  1. Following the conflict resolution above, remove the mPaaS utdid library.

  2. Use the following version of utdid, which does not read or write SD cards.

    implementation "com.taobao.android:utdid4all:1.5.3.1@jar"
  3. (Optional) If you are a private cloud user and have integrated with MAS, you may need to add the following configuration under the application node in AndroidManifest.xml.

    <meta-data
        android:name="use.utdid.1531"
        android:value="on" />
    Note

    Contact mPaaS support to confirm whether this configuration is required.

Impact of Change

After you switch to the new version of utdid, the following changes may occur because the SD card is no longer accessed:

  • After you uninstall and reinstall an application that integrates the new version of utdid, the device ID and threat awareness device ID will change.

  • When an application that integrates the old version of utdid is upgraded to integrate the new version, the number of new users in the mobile analysis dashboard may temporarily increase after the first launch due to the utdid change.