您的位置:首页 > 理论基础 > 计算机网络

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

2012-11-26 15:01 267 查看
出现错误:Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method cn.edu.bzu.soap.SOAPUtil.doTransport

解决方法1:

1.右击项目-->build path-->configure
build 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.直接再次运行程序,不需重新启动模拟器
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: