Android高版本调试时aliyun httpdns报错

06-22 18:00:06.514 3663-3663/com.xxx.xxx E/AMSConfigUtils: ams_httpdns_secretKey is NULL
06-22 18:00:06.517 3663-3693/com.xxx.xxx E/AlicloudUtils: Catch an uncaught exception, Thread-265, error message: Failed resolution of: Lcom/ut/device/UTDevice;
06-22 18:00:06.529 3663-3700/com.xxx.xxx E/AndroidRuntime: FATAL EXCEPTION: Beacon Daemon
    Process: com.xxx.xxx, PID: 3663
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/ta/utdid2/device/UTDevice;

网上搜了一下说是utdid冲突,但是看公司其他项目使用都没问题,怀疑是gradle版本较高导致的,升级依赖的httpDns的版本,问题解决。

implementation('com.aliyun.ams:alicloud-android-httpdns:2.0.2') {}

接入文档
https://help.aliyun.com/document_detail/150879.html

你可能感兴趣的:(Android高版本调试时aliyun httpdns报错)