在Android上使用opensamlAndroid、opensaml

由网友(向日葵的姿态,)分享简介:目前,我想写一个Android应用程序,这将能够创建一个SAML响应,并发送该响应的服务器。对于这种计算策略,我使用opensaml-2.4.1.jar和Android 2.2。我的问题是,当Eclipse正在建设项目中,我得到了像警告:at the moment i am trying to write an an...

目前,我想写一个Android应用程序,这将能够创建一个SAML响应,并发送该响应的服务器。对于这种计算策略,我使用opensaml-2.4.1.jar和Android 2.2。我的问题是,当Eclipse正在建设项目中,我得到了像警告:

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:

霉素警告:忽略InnerClasses属性为匿名内部类  (org.apache.commons.collections.DoubleOrderedMap $ 5),不拿出一个  相关EnclosingMethod属性。这个类可能是由一个生产  编译器并没有针对现代.class文件格式。建议  解决方案是重新编译从源类,使用最多的最新的编译器  并且不指定任何-target类型选项。忽视的后果  这个警告是,在这个类反射操作不当会  表明它是的不的内部类。

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.

有很多这样的警告。

更进一步我得到了一些论文的消息在LogCat中:

Further more i got some of theses messages in LogCat:

DEBUG / dalvikvm(2857):DexOpt:未验证Lorg /阿帕奇/共享/ codeC /德codeR;':多重定义

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。

推荐答案

您需要确保您有针对Android(Java的1.5 +)正确的Java编译版本。如果你打算包括图书馆,罐子在1.4以下编译会导致此错误。

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.

阅读全文

相关推荐

最新文章