title: JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.NoSuchFieldError
body: <p>I'am trying to load some native c libraries into my Andoid app, and I'm getting the following error :</p>
  
  <blockquote>
    <p>JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.NoSuchFieldError: no "I" field "mNativePtr" in class "Landroid/os/Parcel;" or its superclasses</p>
  </blockquote>
  
  <p>Here is a part of the logcat message :</p>
  
  <pre><code>    05-15 14:08:03.177 21078-21078/fr.limsi.registration A/art: art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.NoSuchFieldError: no "I" field "mNativePtr" in class "Landroid/os/Parcel;" or its superclasses
      05-15 14:08:03.177 21078-21078/fr.limsi.registration A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.String java.lang.Runtime.nativeLoad(java.lang.String, java.lang.ClassLoader, java.lang.String) (Runtime.java:-2)
      05-15 14:08:03.177 21078-21078/fr.limsi.registration A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.String java.lang.Runtime.doLoad(java.lang.String, java.lang.ClassLoader) (Runtime.java:435)
      05-15 14:08:03.177 21078-21078/fr.limsi.registration A/art: art/runtime/java_vm_ext.cc:410]   at void java.lang.Runtime.loadLibrary(java.lang.String, java.lang.ClassLoader) (Runtime.java:370)
      05-15 14:08:03.177 21078-21078/fr.limsi.registration A/art: art/runtime/java_vm_ext.cc:410]   at void java.lang.System.loadLibrary(java.lang.String) (System.java:1076)
      05-15 14:08:03.177 21078-21078/fr.limsi.registration A/art: art/runtime/java_vm_ext.cc:410]   at void fr.limsi.registration.utils.NativeInterface.&lt;clinit&gt;() (NativeInterface.java:12)
      05-15 14:08:03.177 21078-21078/fr.limsi.registration A/art: art/runtime/java_vm_ext.cc:410]   at void fr.limsi.registration.utils.NativeInterface.tangoInitServices() (NativeInterface.java:-2)
      05-15 14:08:03.177 21078-21078/fr.limsi.registration A/art: art/runtime/java_vm_ext.cc:410]   at void fr.limsi.registration.activities.ProjectViewActivity.onStart() (ProjectViewActivity.java:63)
      05-15 14:08:03.177 21078-21078/fr.limsi.registration A/art: art/runtime/java_vm_ext.cc:410]   at void android.app.Instrumentation.callActivityOnStart(android.app.Activity) (Instrumentation.java:1238)
      05-15 14:08:03.177 21078-21078/fr.limsi.registration A/art: art/runtime/java_vm_ext.cc:410]   at void android.app.Activity.performStart() (Activity.java:6302)
  </code></pre>
  
  <p>I interpret this as :</p>
  
  <blockquote>
    <p>The class android.od.Parcel doesn't have any field called "mNativePtr". </p>
  </blockquote>
  
  <p>I'm using a Lenovo PHAB II tablet, running with Abdroid 6.0, and the art virtual machine. It the first time I have this issue when running some native code on Android, and I don't understand why I get this message. It happens when the app performs a call to System.loadLibrary(), and the app crashes before executing my native code.
  Does anyone have any idea? </p>
  
  <p>Thanks a lot!</p>
  
  <p>P.S : I proguard is disabled</p>