title: Android Studio with opencv for android ndk, opencv header files not found
body: <p>I'm getting to Android Studio for Android OpenCV developing, but when I compile the project which was ok in eclipse, I got this error:</p>
  
  <blockquote>
    <p>D:\software\AndroidStudioProjects\CameraMe\openCVSamplefacedetection\src\main\jni\DetectionBasedTracker_jni.cpp:2:33: fatal error: opencv2/core/core.hpp: No such file or directory</p>
  </blockquote>
  
  <p>I guess the headers for opencv was not found, but I don't know what's wrong.</p>
  
  <h1>Android.mk</h1>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  
  #OPENCV_CAMERA_MODULES:=off
  #OPENCV_INSTALL_MODULES:=off
  #OPENCV_LIB_TYPE:=SHARED
  include D:\eclipse\OpenCV_2.4.9_android_sdk\sdk\native\jni\OpenCV.mk
  
  LOCAL_SRC_FILES  := DetectionBasedTracker_jni.cpp
  LOCAL_C_INCLUDES += $(LOCAL_PATH)
  LOCAL_LDLIBS     += -llog -ldl
  
  LOCAL_MODULE     := detection_based_tracker
  
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <h1>Application.mk</h1>
  
  <pre><code>APP_STL := gnustl_static
  APP_CPPFLAGS := -frtti -fexceptions
  APP_ABI := armeabi-v7a
  APP_PLATFORM := android-8
  </code></pre>
  
  <h1>DetectionBasedTracker_jni.cpp</h1>
  
  <pre><code>#include &lt;DetectionBasedTracker_jni.h&gt;
  #include &lt;opencv2/core/core.hpp&gt;
  #include &lt;opencv2/contrib/detection_based_tracker.hpp&gt;
  ......
  </code></pre>