title: /usr/lib/x86_64-linux-gnu/libc.so: invalid ELF header
body: <p>Use IntelliJ IDEA to compile Android jni on ubuntu16.04, report </p>
  
  <blockquote>
    <p><code>/usr/lib/x86_64-linux-gnu/libc.so</code>: invalid ELF header</p>
  </blockquote>
  
  <p>(.so files are generated by cross-compilation using NDK)</p>
  
  <p>I added the this path into the /etc/ld.so.conf:</p>
  
  <pre><code>/lib/x86_64-linux-gnu
  </code></pre>
  
  <p>then run </p>
  
  <pre><code>sudo ldconfig 
  </code></pre>
  
  <p>didn't work</p>
  
  <p>My <code>Android.mk</code> is as following:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
  LOCAL_MODULE := JNIHello
  LOCAL_SRC_FILES := Java_com_mmeid_Test_Hello_JNIHello.c
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>