title: JNI crashes when calling CallVoidMethod
body: <p>I'm trying to call a java method from native C code in an Android Application. This sounds quite simple with the usage of JNI, but my code always crashes when finally calling the method itself.
  Here's my code:
  Native C Code:</p>
  
  <pre><code>JNIEXPORT void JNICALL
  Java_com_path_to_my_package_renderStuff(JNIEnv* env,  jobject jobj){
  //...
  jclass clazz = env-&gt;FindClass("com/path/to/the/class");
  jmethodID showCar = env-&gt;GetMethodID(clazz,"showCar","()V" );
  env-&gt;CallVoidMethod(jobj,showCar); //If I comment this out, it won't crash
  //...
  }
  </code></pre>
  
  <p>Java Code:</p>
  
  <pre><code>public void showCar(){      
      doSomething()
  }
  </code></pre>
  
  <p>doSomething() isn't even reached, I can set a breakpoint there, which will never be hit. And as said above, as soon as I comment out the CallVoidMethod call, it won't crash but obviously not call showCar() either. Any hints?</p>