greycat icon indicating copy to clipboard operation
greycat copied to clipboard

How to correctly import GreyCat in Android?

Open Alystrasz opened this issue 6 years ago • 0 comments

I'm trying to use the GreyCat library into an Android application, but when executing the documentation first example, I run into an error:

java.lang.NoSuchMethodError: No virtual method putByteVolatile(Ljava/lang/Object;JB)V in class Lsun/misc/Unsafe; or its super classes (declaration of 'sun.misc.Unsafe' appears in /system/framework/core-oj.jar)

Seeing sun in the stack trace, I also tried several Java versions (8 and 11, with both openjdk and Oracle implementations), without success.

Do you have any idea how to solve this?

Alystrasz avatar Jul 04 '19 13:07 Alystrasz