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
Post a Comment