在Android上使用opensaml [英] Using opensaml on android

查看:460
本文介绍了在Android上使用opensaml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我想写一个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.

这篇关于在Android上使用opensaml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆