Opencv 4.8.0 cannot resolve symbol opencv engine interface

I have found the solution!
so because I changed to android gradle 8.0 it didn’t work, since buildFeatures buildConfig and aidl (OpenCVEngineInterface) have been changed to false by default!
so the solution is to add for the OpenCV Model this

    buildFeatures {
        aidl = true
        buildConfig = true
    }

.
I really hope this will save people time, cheers!

EDIT:
here is the link

1 Like