在android studio中使用SDK 19的java.lang.NoClassDefFoundError:org.ksoap2.serialization.SoapSerializationEnvelope

时间:2017-05-02 10:15:51

标签: android android-asynctask android-ksoap2 soap-serialization

你好我使用android studio这个错误只在sdk版本19中生成和崩溃应用程序。我没有找到原因.i搜索了很多东西但没有找到正确的解决方法。

  

日志显示如下

FATAL EXCEPTION: AsyncTask #2
                                                        java.lang.RuntimeException: An error occured while executing doInBackground() 
                                                        at android.os.AsyncTask$3.done(AsyncTask.java:300)                            
                                                        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)      
                                                        at java.util.concurrent.FutureTask.setException(FutureTask.java:222)   
                                                        at java.util.concurrent.FutureTask.run(FutureTask.java:242)         
                                                        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)                        
                                                        atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                        at java.lang.Thread.run(Thread.java:841)
                                                        Caused by: java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapSerializationEnvelope
                                                        at com.Wsdl2Code.WebServices.User_Setup_Service.User_Setup_Service.ReadMultiple(User_Setup_Service.java:241)
                                                        at com.Wsdl2Code.WebServices.User_Setup_Service.User_Setup_Service$3.doInBackground(User_Setup_Service.java:223)
                                                        at com.Wsdl2Code.WebServices.User_Setup_Service.User_Setup_Service$3.doInBackground(User_Setup_Service.java:216)
                                                        at android.os.AsyncTask$2.call(AsyncTask.java:288)
                                                        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
                                                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                        at java.lang.Thread.run(Thread.java:841) 

和org.ksoap2.serialization.SoapSerializationEnvelope属于外部库文件夹

0 个答案:

没有答案