title: NDK & Android Studio, compiling it crashes because of shared libraries
body: <p>For code reusing I had to move some native code from the working directory to a shared library. This movement however causes a lot of troubles.</p>
  
  <p>If I try to compile it in the old place, everything just clicks, instead if I try to compile it with the same data into the shared library foulder... it fails. No idea why.</p>
  
  <p>Futhermore I can't even do it automatically with Android Studio because Android Studio for some weird reason doesn't recognize the ndk build command.</p>
  
  <p>The .mk file is this:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  
  LOCAL_MODULE    := exam_filter
  LOCAL_SRC_FILES := exam_filter.cpp
  LOCAL_LDLIBS    := -lm -llog -ljnigraphics
  
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>And the error that I get when I try to compile it in the new foulder is:</p>
  
  <pre><code>ndk-build -C jni/
  make: Entering directory `/home/fil/.../jni'
  [armeabi] Compile++ thumb: exam_filter &lt;= exam_filter.cpp
  /home/fil/.../jni/exam_filter.cpp:4:28: fatal error: android/bitmap.h: No such file or directory
   #include &lt;android/bitmap.h&gt;
                              ^
  compilation terminated.
  </code></pre>
  
  <p>Any idea? Thanks :)</p>