Android 中的 ksoap2:SoapObject 上出现 noclassdeffounderror
我已将 ksoap2-android- assembly-2.5.5-jar-with-dependencies 添加到 eclipse 中的构建路径中,并在清单中授予了互联网权限。错误是:'SoapObject request = new SoapObject(namespace, methodName);'并且是一个 noclassdeffound 错误。我检查了references文件夹,ksoap2文件中肯定有一个名为SoapObject的类。我正在使用 Eclipse Helios。我看到的所有其他相关帖子似乎都没有解决我的这个问题的版本,因此任何帮助将不胜感激!
提前致谢
I've added ksoap2-android-assembly-2.5.5-jar-with-dependencies to my build path in eclipse and given internet permissions in the manifest. The error is on: 'SoapObject request = new SoapObject(namespace, methodName);' and is a noclassdeffounderror. I checked the references folder and there is definitely a class called SoapObject in the ksoap2 file. I'm using Eclipse Helios. All of the other relevent posts I have seen don't appear to solve my version of this problem so any help would be greatly appriciated!
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在尝试了所有解决方案之后,我可能会发现我有一个“呃”时刻。我已经将 ksoap2 文件作为 zip 导入,我发现 Android 可能无法处理它。我导入了这个罐子,它运行得很好。
After some frustration trying all of the solutions I could possibly find I had a "duh" moment. I had imported the ksoap2 file as a zip and it occured to me that maybe android couldn't deal with it. I imported the jar and it worked perfectly.