我正在使用newrelic进行崩溃报告。在newrelic崩溃列表中,我可以在Android SharedPreferenceImpl中看到异常。有人可以帮我调试崩溃原因吗? 崩溃:
EXCEPTION java.lang.ArrayIndexOutOfBoundsException
LOCATION FastXmlSerializer.java line 70 in FastXmlSerializer.append()
TIME Today, xx:yy
MESSAGE length=0; index=699
华为设备(HUAWEI Y320-U30)Android 4.2.2(C307B600)
以下是newrelic提供的完整堆栈跟踪
java.lang.ArrayIndexOutOfBoundsException: length=0; index=699
at com.android.internal.util.FastXmlSerializer.append()(FastXmlSerializer.java:70)
at com.android.internal.util.FastXmlSerializer.startTag()(FastXmlSerializer.java:335)
at com.android.internal.util.XmlUtils.writeValueXml()(XmlUtils.java:468)
at com.android.internal.util.XmlUtils.writeMapXml()(XmlUtils.java:245)
at com.android.internal.util.XmlUtils.writeMapXml()(XmlUtils.java:185)
at android.app.SharedPreferencesImpl.writeToFile()(SharedPreferencesImpl.java:598)
at android.app.SharedPreferencesImpl.access$800()(SharedPreferencesImpl.java:52)
at android.app.SharedPreferencesImpl$2.run()(SharedPreferencesImpl.java:513)
at java.util.concurrent.ThreadPoolExecutor.runWorker()(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run()(ThreadPoolExecutor.java:573)
at java.lang.Thread.run()(Thread.java:838)