网络存储(调用WebService)java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject

来源:互联网 发布:pdf修改软件下载 编辑:程序博客网 时间:2024/05/21 22:44

出现错误:Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method cn.edu.bzu.soap.SOAPUtil.doTransport

解决方法1:

1.右击项目-->build path-->configurebuild path-->Libraries中查看包ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar是否打上。

2.在order and export中,勾选包ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar。

3.删除项目bin下的相应的apk。

4.清理项目。

5重启Eclipse和手机。

解决方法2:

1.将lib重命名(可以为libs),此时,项目会出现一个红色感叹号

2.右击项目-->build path-->configure build path-->Libraries中,把包ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar删掉

3.直接再次运行程序,不需重新启动模拟器

 

 

 

原创粉丝点击