PropertyInfo.getName()...和许多其他方法不能得到解决 [英] PropertyInfo.getName() ... and many other methods cannot be resolved
问题描述
下面是我的项目的截图:
Here is a screenshot of my Project:
隐藏错误窗口背后的线条是:
The lines hidden behind the error window are:
pi.setValue(namePart);
pi.setType(Integer.class);
你可以看到我已经包括 KSOAP-J2SE的全2.1.2.jar
和所有进口到位。
尽管如此 pi.setName();
(和它下面的所有的那些)是给解析错误!显然没有这样的方法在课堂上的PropertyInfo存在......我已经用Google搜索这一点,并没有其他人似乎在任何地方有任何这样的问题在网络上或在计算器上!请帮助我被困在学习KSOAP和Web服务的新起点!
as you can see I have included the ksoap-j2se-full-2.1.2.jar
and also all the imports are in place.
Still pi.setName("");
(and all the ones below it) is giving resolution error! apparently no such method exists in class PropertyInfo... I have already googled this and no one else seems to have any such problem anywhere on the Net or on StackOVerflow! Please help I'm stuck at the very starting point of learning Ksoap and Web Services!
推荐答案
好像你正在使用的 ksoap2-J2SE 库,它是错误的。您需要使用 ksoap2-的Android
为了库得到它的工作。
Seems like you are using ksoap2-j2se library which is wrong. You need to use ksoap2-android
library in order to get it work.
这篇关于PropertyInfo.getName()...和许多其他方法不能得到解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!