应用研发平台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)
当我去掉崩溃依赖,又可以正常使用
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。