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

Email notification in google apps script -

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

javascript - IE11 incompatibility with jQuery's 'readonly'? -