Solutions for UTDID conflicts in Alibaba Cloud product SDKs

更新时间:
复制 MD 格式

This solution applies to the following cloud products in the Multiexperience Development Platform (EMAS):

1. What is a UTDID conflict?

UTDID is a universal component for the mobile SDKs of Alibaba Group. Many platform products, including Alibaba Cloud, have mobile SDKs that depend on UTDID. A UTDID conflict can occur if you integrate mobile SDKs from multiple platforms at the same time.

The UTDID naming format is as follows:

  • Android: utdid4all-x.x.x.jar

  • iOS: UTDID.framework

Note

The latest version of the HTTPDNS SDK removes the dependency on UTDID. You do not need to resolve UTDID conflicts when you integrate this version. We recommend that you use the latest version to prevent UTDID-related conflicts.

2. How to resolve UTDID conflicts

Note

The Android UTDID version number must be v1.1.5.3 or later. If you cannot confirm the UTDID version number, follow the solutions below and keep the UTDID package from the Alibaba Cloud platform.

2.1 Manual integration solution

You can manually delete the duplicate UTDID SDK. Make sure to keep only one UTDID SDK.

Note

Keep the UTDID SDK downloaded from the Alibaba Cloud platform.

2.2 Remote repository integration solution

  • For Android integration, use exclude to disable the transitive dependency on UTDID for other product SDKs. See the following example:

compile ('com.xxx:xxx.xxx:1.0.1') {
  exclude (module:'alicloud-android-utdid')
}
Note

The module name may not be alicloud-android-utdid. For details on how to disable the transitive dependency on UTDID, contact the relevant product SDK team.

  • For iOS integration, if you use CocoaPods for remote repository dependencies, you must switch to manual integration. This is because CocoaPods cannot disable transitive dependencies.

2.3 Conflicts with the Alipay SDK UTDID

The Alipay SDK integrates UTDID through source code. Therefore, the manual integration solution and remote repository integration solution described above do not apply.

Download and integrate the Alipay SDK with UTDID removed, and keep the UTDID package from the Alibaba Cloud platform. This SDK version is updated in sync with the standard Alipay SDK, and your Alipay features will not be affected.

Note

If conflicts persist after you integrate the Alipay SDK with UTDID removed, clear the cache and integrate the SDK again.