开发者社区 问答 正文

应用研发平台EMAS接入crashreporter后,出现非常奇怪的问题?

应用研发平台EMAS接入crashreporter后,出现非常奇怪的问题?我们app有个业务是选择通讯录,通过Intent打开通讯录后,再返回app出现崩溃。日志如下:
java.lang.NoSuchFieldError: No field args of type Ljava/util/Map; in class Lcom/alibaba/ha/bizerrorreporter/module/BizErrorModule; or its superclasses (declaration of 'com.alibaba.ha.bizerrorreporter.module.BizErrorModule' appears in /data/app/~~vJAiWiWg4ba4zwyutgbYFA==/com.niuniu.ygyg-IuV-ayJD58W5Ibhj1zAkWw==/base.apk)
at com.alibaba.ha.adapter.plugin.OlympicPlugin$1.violation2BizError(SourceFile:138)
at com.alibaba.ha.adapter.plugin.OlympicPlugin$1.onViolation(SourceFile:138)
at com.taobao.monitor.olympic.plugins.strictmode.ViolationSubject$2.run(Unknown Source:4)
at com.taobao.monitor.olympic.plugins.strictmode.ViolationSubject.execute(SourceFile:5)
at com.taobao.monitor.olympic.plugins.strictmode.ViolationSubject.notifyViolation(SourceFile:5)
at com.taobao.monitor.olympic.OlympicVmCompat$Policy$BaseBuilderImpl$1.onVmViolation(Unknown Source:10)
at android.os.StrictMode.lambda$onVmPolicyViolation$3(StrictMode.java:2464)
at android.os.StrictMode$$ExternalSyntheticLambda2.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:966)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:293)
at android.os.HandlerThread.run(HandlerThread.java:110)

业务代码是:
val intent = Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(intent, PICK_CONTACT)

当我去掉崩溃依赖,又可以正常使用

展开
收起
真的很搞笑 2023-12-27 08:10:12 86 分享 版权
0 条回答
写回答
取消 提交回答