title: Cannot find OpenCV in Android Studio
body: <p>So i've been tried this <a href="https://stackoverflow.com/questions/17767557/how-to-use-opencv-in-android-studio-using-gradle-build-tool/22427267#22427267">link</a> to setup openCV and NDK in android studio. But when i tried to debug the app, there is an error</p>
  
  <pre><code>Note: C:\Users\Jeems\Documents\pulse-android1\pulseandroid\src\main\java\org\opencv\android\MyJavaCameraView.java uses or overrides a deprecated API.
  Note: Recompile with -Xlint:deprecation for details.
  :pulseandroid:compileDebugNdk
  In file included from C:\Users\Jeems\Documents\pulse-android1\pulseandroid\src\main\jni\EvmGdownIIR.cpp:1:0:
  C:\Users\Jeems\Documents\pulse-android1\pulseandroid\src\main\jni\EvmGdownIIR.hpp:4:33: fatal error: opencv2/core/core.hpp: No such file or directory
   #include &lt;opencv2/core/core.hpp&gt;
                                   ^
  compilation terminated.
  make.exe: *** [C:\Users\Jeems\Documents\pulse-android1\pulseandroid\build\intermediates\ndk\debug\obj/local/arm64-v8a/objs/pulse/C_\Users\Jeems\Documents\pulse-android1\pulseandroid\src\main\jni\EvmGdownIIR.o] Error 1
  Error:Execution failed for task ':pulseandroid:compileDebugNdk'.
  &gt; com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Jeems\Documents\android-ndk-r10e\ndk-build.cmd'' finished with non-zero exit value 2
  </code></pre>
  
  <p>And i can't include opencv2 in my project.</p>
  
  <p><a href="https://i.stack.imgur.com/mNCWY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mNCWY.png" alt="enter image description here"></a></p>
  
  <p>So what step i missed?</p>
  
  <p>So, i've been working the project till this new error came up.</p>
  
  <pre><code>:pulseandroid:ndkBuild
  SharedLibrary  : libpulse.so
  C:/Users/Jeems/Documents/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: build/intermediates/ndk/obj/local/armeabi/objs/pulse/pt_fraunhofer_pulse_Pulse_Face.o: in function i::Java_pt_fraunhofer_pulse_Pulse_00024Face(double):src/main/jni/pt_fraunhofer_pulse_Pulse_Face.cpp:24: error: undefined reference to '__android_log_print'
  C:/Users/Jeems/Documents/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: build/intermediates/ndk/obj/local/armeabi/objs/pulse/pt_fraunhofer_pulse_Pulse_Face.o: in function i::Java_pt_fraunhofer_pulse_Pulse_00024Face(double):src/main/jni/pt_fraunhofer_pulse_Pulse_Face.cpp:42: error: undefined reference to '__android_log_print'
  C:/Users/Jeems/Documents/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: build/intermediates/ndk/obj/local/armeabi/objs/pulse/pt_fraunhofer_pulse_Pulse_Face.o: in function Java_pt_fraunhofer_pulse_Pulse_00024Face__1box:src/main/jni/pt_fraunhofer_pulse_Pulse_Face.cpp:54: error: undefined reference to '__android_log_print'
  C:/Users/Jeems/Documents/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: build/intermediates/ndk/obj/local/armeabi/objs/pulse/pt_fraunhofer_pulse_Pulse_Face.o: in function Java_pt_fraunhofer_pulse_Pulse_00024Face__1box:src/main/jni/pt_fraunhofer_pulse_Pulse_Face.cpp:74: error: undefined reference to '__android_log_print'
  collect2: ld returned 1 exit status
  make: *** [build/intermediates/ndk/obj/local/armeabi/libpulse.so] Error 1
  :pulseandroid:ndkBuild FAILED
  Error:Execution failed for task ':pulseandroid:ndkBuild'.
  &gt; Process 'command 'C:\Users\Jeems\Documents\android-ndk-r8d\ndk-build.cmd'' finished with non-zero exit value 2
  </code></pre>