美文网首页
Android高版本调试时aliyun httpdns报错

Android高版本调试时aliyun httpdns报错

作者: 小二二二7 | 来源:发表于2021-06-23 11:56 被阅读0次
    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报错

          本文链接:https://www.haomeiwen.com/subject/oicbyltx.html