After importing from OpenCV for android and download the ADT Bundle
Instead of this:
Warning : After the initial import, on a non-Windows (Linux and Mac OS) operating system Eclipse will still show build errors for applications with native C++ code. To resolve the issues, please do the following:
Open Project Properties -> C/C++ Build, and replace "Build command" text to "${NDKROOT}/ndk-build" (remove .cmd at the end).
try the following steps:
Download ndk build Android NDK
Indicate the location of the NDK:
Windows Preferences → →> Android → NDK → Specify the location of the NDK (which you downloaded from the link above)
Get project location:
→ > properties → resource → location
: : D:\OpenCV-2.4.6-android-sdk-r2\OpenCV-2.4.6-android-sdk\samples\15-puzzle
cmd:
D:\OpenCV-2.4.6---r2\OpenCV-2.4.6--SDK\Samples\15- > D:\Android--9\NDK-
D:\android-ndk-r9\ndk-build ( NDK)
. , OpenCV Manager