VerifyError in web-service operation using SOAP only in Android 4.2?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 15:57:38

问题


I am getting java.lang.VerifyError in call Webservice communicator class.

This Error is seen only in Android 4.2 O.S devices. And its working well on all other devices of OS and Tabs too.

below are my logs:

01-09 06:15:10.263: E/AndroidRuntime(785): FATAL EXCEPTION: Thread-78
01-09 06:15:10.263: E/AndroidRuntime(785): java.lang.VerifyError: org/ksoap2/SoapEnvelope
01-09 06:15:10.263: E/AndroidRuntime(785):  at com.weg.ecatalogue.servercommunication.WebServiceCommunicator$2.run(WebServiceCommunicator.java:78)
01-09 06:15:10.263: E/AndroidRuntime(785):  at java.lang.Thread.run(Thread.java:856)

Please suggest me, about this 4.2 OS dependent issue.


回答1:


Use this jar file for call soap webservices

ksoap2-android-assembly-2.6.2-jar-with-dependencies .jar

And replace AndroidHttpTransport class to HttpTransportSE



来源:https://stackoverflow.com/questions/13881131/getting-java-lang-verifyerror-org-ksoap2-soapenvelope-in-android-os-4-1-and-4-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!