之前一直好好的,今天突然以后就这样了
我平台是Android 4.0.3
运行工程时总是提示Your project coontains error(s),please fix them before running your application.可我的代码里面没有任何报错
后来我尝试了重启eclipse,删除工程重新导入,重装eclipse,下载最近的jar包重新add build path,还是没效果
看了一下Console,里面有如下的信息,貌似jar包的问题,但是我已经更新了最近的jar包
不知道哪位大虾碰到过类似问题
[2012-06-29 15:01:02 - *******Evolution*****V1.0] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.ksoap2.transport.KeepAliveHttpsTransportSE$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-06-29 15:01:03 - *******Evolution*****V1.0] Dx
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lorg/ksoap2/serialization/MarshalFloat;
[2012-06-29 15:01:07 - *******Evolution*****V1.0] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.dom4j.dom.DOMNodeHelper$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
------解决方案--------------------
dx.jar有问题?
目录: android-sdk-windows\platform-tools\lib\dx.jar
命令 dx --version看看dx的版本;