All Products
Search
Document Center

Mobile Platform as a Service:Solve conflict with dependency on utdid

Last Updated:Sep 07, 2023

Conflict description

If you are using mPaaS along with the Alibaba SDKs, you may experience utdid conflicts. In such a case, please refer to the following solutions.

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 similarly reviewed 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

      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.