android - kSoap 2 2.6.5 找不到类 'org.ksoap2.serialization.SoapObject'

标签 android ksoap

Caused by: java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject

我需要 ksoap 2 上的新东西,所以我更新到 2.6.5,但我不工作。给了我这个错误。但它的构建也不异常(exception)。我怀疑这个不确定;添加 jar 后我在 libs 中有 ksoap2 它也出现在 root 上(src - gen - android 4.0.3 - ksoap2 - assets bla bla)

提前感谢您的时间。

最佳答案

好吧,为了让下一个追随者更清楚地了解解决方案:

  1. 右键单击您的项目 -> 属性
  2. 选择Java 构建路径
  3. tab order and export -> 检查您的 jar 库文件,该文件是 KSOAP jar 是否有问题。

祝你好运!

关于android - kSoap 2 2.6.5 找不到类 'org.ksoap2.serialization.SoapObject',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11403590/

相关文章:

android - 思科 MSE API : SOAP communication with Android APP

android - ksoap2 问题 java.net.ConnectException

安卓 : Set scroll view position to start at 80% from top of screen

android - 在 Android Studio 中展开所有包树文件夹(项目 View )的键盘快捷键?

java - Android 6.0 即使拥有权限 777 chmod 也无法读取数据目录中的文件

android - 主机名未经过验证 ANDROID

java - 运行时异常 : Unable to start activity android listview

java - 无法将数据解析到recyclerview中

android - 如何从 Android 中的 KSOAP Web 服务检索对象数组?

.net - 如何调用将 ArrayList 返回给 Android 的 .net Web 服务