title: Android sdk 26 onwards- JNI GetObjectField called with pending exception java.lang.NoSuchFieldError for custom array object
body: <p>In <strong>JNI</strong>, I am calling a <strong>custom array object</strong>. I got its type from the foo.getclass().getName() and used that to get <strong>GetFieldID</strong>.
  The type is like:   [L fully-qualified-class-name.</p>
  
  <p>In <strong>SDK 25</strong>, I am able to get the '<strong>GetObjectField</strong>' without any error.</p>
  
  <p>In <strong>SDK 26</strong>, I am getting the following error: </p>
  
  <blockquote>
    <p>A/zygote64: java_vm_ext.cc:534] JNI DETECTED ERROR IN APPLICATION:
    JNI GetObjectField called with pending exception
    java.lang.NoSuchFieldError: no type "[Lcom..customClassName;"
    found and so no field "fieldname" could be found in class
    "Lcom..parentClass;" or its superclasses</p>
  </blockquote>
  
  <p>I am aware that <em>there are some changes in the newer SDK</em>. But, I am not sure how to change it so that there is no error.
  Thanks.</p>