All Products
Search
Document Center

Solve conflict with dependency on utdid

Last Updated: Mar 10, 2021

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.

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

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

    • AAR method

           
      1. configurations {
      2. all*.exclude group:'com.alipay.android.phone.thirdparty', module: 'utdid-build'
      3. }
    • mPaaS Inside and Portal & Bundle

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

    • Basilines 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.