Android 中的 apache.commons.digester jar 警告

发布于 2024-12-03 13:23:58 字数 1053 浏览 0 评论 0原文

当我使用 jsf-impl.jar 解析 rss feed 时,我在 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;

有人知道该怎么做吗?是的,我正在谷歌搜索负载...... 不管怎样,谢谢你的时间。

I am struggling with a warning in my android project when i use jsf-impl.jar for parsing rss feed.
This is the warning i get:

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

If i use this jar in a normal java class, not one that extends Activity from Android i dont get any errors or warnings. I tried cleaning the project, refresh, restart eclipse, computer. I have no idea what to do. Tried with other jars but i don't find the jars that i need to import in my class:

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

Does someone have an idea to what to do? And yes, i am googling loads...
Thanks anyway for your time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

画中仙 2024-12-10 13:23:58

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

Since the warning is about the compiler, I am interested to know who the jar was built? If it was downloaded as is, then I would try building the Jar file myself, with JDK 6.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文