以下是在模拟器上运行我的应用程序时在 logcat 中记录的 2 个错误:
02-09 13:44:10.470: W/dalvikvm(1334): VFY: unable to resolve virtual method 4033: Lorg/ksoap2/serialization/SoapObject;.getProperty (Ljava/lang/String;)Ljava/lang/Object;
02-09 13:44:10.492: E/dalvikvm(1334): Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method com.example.androidapp.NextPage.soap
什么可能导致这些错误,我该如何解决?谢谢!
编辑:我解决了。我必须在 project>properties>java build path>Order and Export 下勾选“ksoap2.jar”。它现在没有给出错误。