Ask Your Question

Revision history [back]

Android Studio Setup / NDK

I'm experienced with OpenCV on Python and Java, and am trying to integrate it into an Android app. I'm following along with some tutorials online (for example, this one https://www.youtube.com/watch?v=nv4MEliij14)

Every tutorial involves using Android Studio's NDK, but recently they changed how it functions and I keep getting the following error when I try to run my app

Error: Your project contains C++ files but it is not using a supported native build system. Consider using CMake or ndk-build integration. For more information, go to: https://d.android.com/r/studio-ui/add-native-code.html Alternatively, you can use the experimental plugin: https://developer.android.com/r/tools/experimental-plugin.html

I've tried following both links, but haven't been able to get either to work. Any help would be greatly appreciated- just trying to get the basics set up.