Cant add OpenCV module to dependencies

Android Studio Hedgehog 2023.1.1 Patch 2

I’m going through the OpenCV & Android beginners tutorial.

I got to section 7 Add the module to the project:

  • Click File → Project structure… → Dependencies → All modules → + (Add Dependency button) → Module dependency

But there is no option to add a module dependency as shown in the tutorial. There is only the first two options.

So, import; can’t be resolved.

How do I add OpenCV as a dependency?


Should I delete one of them?

I only care that the crossposts are also crosslinked, so people don’t repeat what someone else might have said already.