Hello,
I'm trying to use sql2o on an android device. It use to work fine, but today I switched from Android V4.2.2 to V6.0 and since then I'm getting a bug in my app.
Here's the relevant stacktrace :
java.lang.NoSuchMethodError: No virtual method staticFieldOffset(Ljava/lang/reflect/Field;)J in class Lsun/misc/Unsafe; or its super classes (declaration of 'sun.misc.Unsafe' appears in /system/framework/core-libart.jar)
at org.sql2o.reflection.UnsafeFieldGetterFactory.newGetter(UnsafeFieldGetterFactory.java:31)
at org.sql2o.reflection.FactoryFacade.newGetter(FactoryFacade.java:64)
at org.sql2o.reflection.PojoMetadata.initializePropertyInfo(PojoMetadata.java:108)
at org.sql2o.reflection.PojoMetadata.access$200(PojoMetadata.java:19)
at org.sql2o.reflection.PojoMetadata$Cache.evaluate(PojoMetadata.java:241)
at org.sql2o.reflection.PojoMetadata$Cache.evaluate(PojoMetadata.java:238)
at org.sql2o.tools.AbstractCache.get(AbstractCache.java:49)
at org.sql2o.reflection.PojoMetadata.getPropertyInfoThroughCache(PojoMetadata.java:81)
at org.sql2o.reflection.PojoMetadata.<init>(PojoMetadata.java:68)
at org.sql2o.DefaultResultSetHandlerFactoryBuilder.newFactory(DefaultResultSetHandlerFactoryBuilder.java:61)
at org.sql2o.Query.newResultSetHandlerFactory(Query.java:532)
at org.sql2o.Query.executeAndFetch(Query.java:574)
Can somebody help me figure out a solution ?
Vivien