io.reactivex.exceptions.UndeliverableException: com.tencent.wxvoip.ServiceProxy$GetTicketException: Value fail of type java.lang.String cannot be converted to JSONObject
at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:367)
at io.reactivex.internal.observers.ConsumerSingleObserver.onSuccess(ConsumerSingleObserver.java:66)
at io.reactivex.internal.operators.single.SingleCreate$Emitter.onSuccess(SingleCreate.java:68)
Caused by: com.tencent.wxvoip.ServiceProxy$GetTicketException: Value fail of type java.lang.String cannot be converted to JSONObject
at com.tencent.wxvoip.ServiceProxy.getCallerTicket(Unknown Source:615)
service.getCallerTicket 这个接口报出异常导致App崩溃
Value fail of type java.lang.String cannot be converted to JSONObject 麻烦看一下是因为什么
这种一般是网络问题,请求的回复不是正确的 json 内容,你可以 catch 这个 exception,不会导致 app 崩溃吧?