I am trying to use REST-Assuered in an android project.
java.lang.NoClassDefFoundError: java.beans.PropertyDescriptor
at libcore.reflect.InternalNames.getClass(InternalNames.java:55)
at libcore.reflect.InternalNames.getClass(InternalNames.java:30)
at java.lang.Class.getDexCacheType(Class.java:479)
at java.lang.reflect.ArtMethod.getDexCacheType(ArtMethod.java:229)
at java.lang.reflect.ArtMethod.getParameterTypes(ArtMethod.java:169)
at java.lang.reflect.Method.getParameterTypes(Method.java:174)
at java.lang.Class.getDeclaredMethods(Class.java:772)
at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)
at java.security.AccessController.doPrivileged(AccessController.java:45)
at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81)
at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79)
at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250)
at groovy.lang.MetaClassImpl.populateMethods(MetaClassImpl.java:313)
at groovy.lang.MetaClassImpl.fillMethodIndex(MetaClassImpl.java:292)
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3045)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:119)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:71)
at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:33)
at org.codehaus.groovy.reflection.ClassInfo.isValidWeakMetaClass(ClassInfo.java:221)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassForClass(ClassInfo.java:191)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:236)
at com.jayway.restassured.internal.path.json.JSONAssertion.$getStaticMetaClass(JSONAssertion.groovy)
at com.jayway.restassured.internal.path.json.JSONAssertion.<init>(JSONAssertion.groovy)
at com.jayway.restassured.path.json.JsonPath.createJsonAssertion(JsonPath.java:928)
at com.jayway.restassured.path.json.JsonPath.get(JsonPath.java:200)
I am aware that the java.beans package is not supported in android. But there is an alternative, the openbeans project.
I am trying to figure out a way of integrating both, but can't find how. I made a suggestion to use the openbeans project in the issue tracker.