Ask Your Question

Revision history [back]

I was able to get past this issue. The problem appears to have been caused because the NDK I was using was built against a different standard template library (libc++) than OpenCV was built against (gnustl). I changed my Android Studio project to use gnustl and then had to downgrade my NDK to v16 because the gnustl library is no longer part of newer NDKs. Doing this resolved all my linker issues. See the following discussions for more details. These are what helped me:

https://stackoverflow.com/questions/50677231/linking-errors-on-android-with-opencv-3-4-0-and-ndk

https://stackoverflow.com/questions/52410712/ndk-problems-after-gnustl-has-been-removed-from-the-ndk-revision-r18/52436751#52436751