title: Android NDK: Static library used is different than precompiled library specified
body: <p>I build a C++ library manually using the Android SDK compiler. The result is libMyUtils.a.</p>
  
  <p>I'm using the following in my Java/JNI test application:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  LOCAL_MODULE    := MyUtils
  LOCAL_SRC_FILES := ../../../../libs/libMyUtils.a
  
  include $(PREBUILT_STATIC_LIBRARY)
  
  LOCAL_MODULE    := AndroidTests
  LOCAL_STATIC_LIBRARIES    := MyUtils
  
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>When I build the console shows the following:</p>
  
  <pre><code>[armeabi] Install        : libMyUtils.so =&gt; libs/armeabi/libMyUtils.so
  </code></pre>
  
  <p>Now for some bizarre reason the library ../../../../libs/libMyUtils.a is a couple megabytes, but the library libs/armeabi/libMyUtils.so is only 5KB. Isn't it supposed to be the same library?</p>
  
  <p>When I run my test application I get UnsatisfiedLinkError. Obviously the native function I'm calling isn't located in the library. What am I doing wrong?</p>