0

当我使用 jsf-impl.jar 解析 rss 提要时,我在我的 android 项目中遇到警告。这是我得到的警告:

Dxwarning: Ignoring InnerClasses attribute for an anonymous inner class (com.sun.org.apache.commons.logging.impl.SimpleLog$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

如果我在普通的 java 类中使用这个 jar,而不是从 Android 扩展 Activity,我不会收到任何错误或警告。我尝试清理项目,刷新,重新启动eclipse,计算机。我不知道该怎么做。尝试使用其他罐子,但我找不到我需要在课堂上导入的罐子:

导入 com.sun.org.apache.commons.digester.rss.Channel;导入 com.sun.org.apache.commons.digester.rss.Item;导入 com.sun.org.apache.commons.digester.rss.RSSDigester;

有人知道该怎么做吗?是的,我正在谷歌搜索负载...无论如何感谢您的时间。

4

1 回答 1

0

由于警告是关于编译器的,我很想知道这个 jar 是由谁构建的?如果它是按原样下载的,那么我会尝试使用 JDK 6 自己构建 Jar 文件。

于 2011-09-07T17:39:20.653 回答