【发布时间】:2013-02-10 12:18:07
【问题描述】:
我有使用 java.beans.Introspector、java.beans.BeanInfo 和 java.beans.PropertyDescriptor 的第三方 jar(我无法更改)。
如何在我的 android 应用程序中使用该 jar?
无法从第 3 方 jar 加载类(使用 Introspector):
WARN/dalvikvm(780): VFY: unable to resolve static method 6325: Ljava/beans/Introspector;.getBeanInfo (Ljava/lang/Class;)Ljava/beans/BeanInfo;
WARN/dalvikvm(780): VFY: unable to resolve exception class 962 (Ljava/beans/IntrospectionException;)
WARN/dalvikvm(780): Verifier rejected class Lorg/thirdpartyjar/SomeClass;
【问题讨论】:
-
如果允许更改第 3 方 jar,则可以使用 openbeans,尽管 maven central 不可用。
-
看起来没有解决方法,所以我创建了an android issue to support java.beans。
标签: java android reflection