Help! Add OpenCV to an Android Studio project

Hi! I 'm new to Android development and I need help to add the OpenCV 4.5.3 library to my Android Studio project. I have followed many tutorials but I can’t seem to add the library correctly. Whenever I try to start the camera using OpenCV I get the message that I need OpenCV Manager. What do I need to do if I don’t want to have that application installed on my device?

My Android Studio version is 4.2.1.

Thanks in advance, any help will be welcome.

the deprcated OpenCV Manager app does no more exist, so


can no more work.

build all required libs locally (x86,arm,etc) and either use


or a plain


// TODO: Add accurate API to load OpenCV native library

build all required libs locally (x86,arm,etc)

You mean generate diff .so files for diff archs and then use them in Android project by adding them for different arch folders?

Is there a tutorial for that? I have looked through resources listed on the site but couldn’t find any. I am trying to use CMake GUI tool but the build has been failing.

Or is there some other recommended way of building open cv to be used in Android projects? A way that can also limit the opencv lib size to include only the features that are needed.