I\'m trying to run a Googles OCR Tesseract with my android project. I have already complied tesseract with android-ndk and am receiving this error after I try and run the an
Most likely the JNI mappings were incorrectly defined in your C++ code. JNI has very strict contracts about type mappings with Java. For example, before calling a Java object's method from JNI, we need its signature. So the method:
long myMethod (int n, String s, int[] arr);
is seen from JNI with the signature:
(ILJAVA/LANG/STRING;[I])J
You can read a very comprehensive overview of these rules here: http://www.rgagnon.com/javadetails/java-0286.html