title: Using my own prebuilt shared library in an Android NDK project
body: <p>I came across this post that is almost what I need:</p>
  <p><a href="https://stackoverflow.com/questions/2943828/how-to-compile-a-static-library-using-the-android-ndk">How to compile a static library using the Android NDK?</a></p>
  <blockquote>
  <p>Basically, there are certain parts in my project that are never updated, so I am trying to avoid having them built every single time I update the Android.mk file to add something.</p>
  </blockquote>
  <p>The above answer shows how to get some of the code built into a separate static lib, but when I try to pre-build the above code in a separate Android.mk file, It won't build by itself. This seems a little redundant... If I have to build them both at the same time, then what's the point of making a separate static lib anyways?</p>
  <p>And if I change Android.mk in the separate project to read:</p>
  <blockquote>
  <p>include $(BUILD_SHARED_LIBRARY)</p>
  </blockquote>
  <p>and include it like this in the main project:</p>
  <blockquote>
  <p>LOCAL_SHARED_LIBRARIES := libMyaccessories.so</p>
  </blockquote>
  <p>then I get unresolved reference to(function name), probably because it can't find the shared lib(which is in the calling path)</p>
  <blockquote>
  <p>Can anyone help me out with this?</p>
  </blockquote>