Problem description
A UTDID conflict occurs when you use Alibaba Cloud SDKs.
Solutions
Note:
If you modify instances or data, ensure that the instances have disaster recovery and fault tolerance capabilities to protect your data.
If you modify the configurations or data of instances such as ECS and ApsaraDB RDS, create snapshots or enable features such as RDS log backup in advance.
If you have granted permissions or submitted security information such as logon credentials on the Alibaba Cloud platform, change them promptly.
UTDID is a common component that is used by many mobile SDKs from Alibaba Cloud and other platforms. A UTDID conflict can occur if you integrate mobile SDKs from multiple platforms at the same time. The UTDID package is named as follows:
Android: utdid4all-x.x.x.jar
iOS: UTDID.framework
You can resolve UTDID conflicts using one of the following methods:
Note: The Android UTDID version number must be 1.1.5.3 or later. If you cannot confirm the version number, follow the solutions below and keep the UTDID package from Alibaba Cloud.
Manual integration solution
You can manually delete the duplicate UTDID SDK and keep only one.
Note: Keep the UTDID SDK downloaded from Alibaba Cloud.
Remote repository integration solution
For Android integration, you can use `exclude` to disable the transitive dependency on UTDID from other SDKs. For example:
compile ('com.xxx:xxx.xxx:1.0.1') {
exclude (module:'alicloud-android-utdid')
}Note: The module name may not be alicloud-android-utdid. To learn how to disable the transitive dependency on UTDID, contact the corresponding Alibaba Cloud technical support.
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.
Solution for UTDID conflicts with the Alipay SDK
The manual and remote repository integration solutions are not compatible with the UTDID that is integrated from the source code of the Alipay SDK.
You can download and integrate the Alipay SDK with the UTDID component removed. Keep the UTDID package from Alibaba Cloud. This version of the SDK is in sync with the standard Alipay SDK, so Alipay features are not affected.
Note: If a conflict still occurs after you integrate the Alipay SDK with the UTDID component removed, clear the cache and integrate the SDK again.
Applicable products
Mobile Push
HTTPDNS
Mobile Hotfix
Mobile Feedback
If your problem is not resolved, you can get free help in the Alibaba Cloud community or submit a ticket to contact Alibaba Cloud technical support.