android - NoSuchMethodError in JNI to Java Exception -


i getting error:

java.lang.nosuchmethoderror: no non-static method "ljava/lang/assertionerror;.(ljava/lang/string;)v"

jclass clazz = env->findclass( "java/lang/assertionerror" );  env->thrownew( clazz, "test assertion" ); 

note: env jnienv*

any thoughts? see assertionerror exists. seeing on android lollipop only. seems fine on android 4.4.2.

java.lang.assertionerror doesn't have constructor mentioned in error message. can't use thrownew(), relies on that.

you'll have construct exception , use throw().


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -