Ask Your Question

Revision history [back]

How to add two different OpenCV libs in Android Studio?

I'm in the strange need of using both 2.4.11 (old HOG CascadeClassifier) and 3.1.0 (new Kalman filter) OpenCV libraries in Android Studio.

I've got the new 3.1.0 working but when I add the new module 2.4.11, there's a mess because both packages are called the same ( I tried refactoring the packages to rename them to something like org.opencv310 and org.opencv2411 but some issues with the AIDL engine are not solved and gradle build crashes.

I'm wondering if someone has done this before or how can it be done?

Thank you!