trouble processing "xxxx.class": Ill-advised or mistaken usage of a core class (java.* or javax.*)

尝试在android开发中使用webservice,用的是axis,引入了几个jar包,看上去没有问题。

不过在运行的时候控制台报错,无法运行,内容如下:

trouble processing "javax/xml/messaging/Endpoint.class":

Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.

This is often due to inadvertently including a core library file
in your application's project, when using an IDE (such as
Eclipse). If you are sure you're not intentionally defining a
core class, then this is the most likely explanation of what's
going on.

... ...

网上查了一圈,大概找到了原因,引入的这几个jar包中,有的类定义和Android核心模块中的类有冲突。

那怎样解决这个问题呢?折腾了一下午,最终决定放弃axis,删掉上述几个jar包,改用ksoap2。

ksoap2的使用,参见文章:Android中使用ksoap2调用webservice

扫描二维码关注公众号,回复: 3476733 查看本文章

猜你喜欢

转载自blog.csdn.net/zhouyingge1104/article/details/82888870