在 Android 上使用 opensaml
目前我正在尝试编写一个 Android 应用程序,它将能够创建 SAML 响应并将该响应发送到服务器。 对于这个方法,我使用 opensaml-2.4.1.jar 和 android 2.2。我的问题是,当 eclipse 构建我的项目时,我收到如下警告:
Dx 警告:忽略匿名内部类的 InnerClasses 属性 (org.apache.commons.collections.DoubleOrderedMap$5) 没有附带 关联的 EnclosureMethod 属性。这个类可能是由 不针对现代 .class 文件格式的编译器。推荐的 解决方案是使用最新的编译器从源代码重新编译该类 并且不指定任何“-target”类型选项。忽视的后果 此警告是对该类的反射操作将错误地 表明它不是内部类。
这样的警告有很多。
此外,我在 LogCat 中收到了一些这些消息:
DEBUG/dalvikvm(2857):DexOpt:未验证“Lorg/apache/commons/codec/Decoder;”:多个定义
我不明白这些警告的含义。 有人可以帮我吗?
谢谢。
at the moment i am trying to write an android app, which will be able to create a SAML response and send this response to a server.
For this approch i am using opensaml-2.4.1.jar and android 2.2. My problem is, when eclipse is building my project i got warnings like:
Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.collections.DoubleOrderedMap$5) 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.
There are a lot of this warnings.
Further more i got some of theses messages in LogCat:
DEBUG/dalvikvm(2857): DexOpt: not verifying 'Lorg/apache/commons/codec/Decoder;': multiple definitions
I dont understand the meaning of these warnings.
Can somebody help me with that?
Thx.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要确保您拥有适用于 Android 的正确 java 编译版本(Java 1.5 +)。如果您打算包含库,则在 1.4 或更低版本中编译的 jar 将会导致此错误。
You need to make sure you have the correct java compiled version for Android (Java 1.5 +). If you intend to include libraries, the jars compiled in 1.4 or less will have caused this error.