我的应用程序使用XStream 1.4.2库从服务器提取到达电话的数据对象。迄今为止,还没有任何问题。一位用户最近报告了手机升级到Android 9的情况,现在该应用在调用XStream()构造函数时崩溃。
致电:
XStream xstream = new XStream();
错误(电话记录):
java.lang.ExceptionInInitializerError:
at com.thoughtworks.xstream.converters.collections.TreeMapConverter.<clinit> (TreeMapConverter.java:64)
at com.thoughtworks.xstream.XStream.setupConverters (XStream.java:678)
at com.thoughtworks.xstream.XStream.<init> (XStream.java:456)
at com.thoughtworks.xstream.XStream.<init> (XStream.java:381)
at com.thoughtworks.xstream.XStream.<init> (XStream.java:336)
at com.jacksgonewild.android.Client.doSend (Client.java:162)
at com.jacksgonewild.android.PostToSequenceService.postMessage (PostToSequenceService.java:340)
at com.jacksgonewild.android.PostToSequenceService.connectToServer (PostToSequenceService.java:248)
at com.jacksgonewild.android.PostToSequenceService.onHandleIntent (PostToSequenceService.java:213)
at android.app.IntentService$ServiceHandler.handleMessage (IntentService.java:76)
at android.os.Handler.dispatchMessage (Handler.java:112)
at android.os.Looper.loop (Looper.java:216)
at android.os.HandlerThread.run (HandlerThread.java:65)