Dx warning issues with latest Android SDK

*爱你&永不变心* 提交于 2019-12-10 13:42:34

问题


I update the ADT, and reinstall android SDK. After that I try to run a program, but it does not work. console output is like below:

Dx warning: Ignoring InnerClasses attribute for an anonymous inner class org.apache.commons.httpclient.HttpMethodBase$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 warning: Ignoring InnerClasses attribute for an anonymous inner class org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$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.

and a dialog pops up from eclipse, saying that your project contains errors, please fix them before running.

The org.apache.commons.httpclient appearing in the output is in commons-httpclient-3.1.jar. I can not use the latest httpclient package from apache to replace it as some variable names change. The same set of source code works perfectly under Mac, but it just has this problem under win7. Any idea about this?

Thanks

来源:https://stackoverflow.com/questions/7976896/dx-warning-issues-with-latest-android-sdk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!