Android 中的 ksoap2:SoapObject 上出现 noclassdeffounderror

发布于 2024-11-16 10:17:17 字数 306 浏览 2 评论 0原文

我已将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

俯瞰星空 2024-11-23 10:17:17

在尝试了所有解决方案之后,我可能会发现我有一个“呃”时刻。我已经将 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文