title: How to package prebuilt shared library inside an APK
body: <p>This question seems to have been asked a lot but all were trying to use eclipse to package the library inside the APK. 
  However, my requirement is to package the library inside the APK (which will later be loaded using System.loadLibrary() through Java) using the Android build system, i.e. i want to write an Android.mk file that does this job.</p>
  
  <p>Requirement:
  1. Prebuilt shared library: libTest.so
  2. Write an Android.mk file that will package this to libs/armeabi-7 inside the apk.</p>
  
  <p>I don't know much about the build system I am using but the compilation is done using "mm" command after exporting the required environment variables. </p>
  
  <p>When I provide libTest for LOCAL_JNI_SHARED_LIBRARIES, it tries to find it inside its exported paths and fails to find it there and hence build fails.</p>
  
  <p>Can anyone please give any pointers on writing an Android.mk file that will package my prebuild shared library into the APK?</p>