0

After adding the OpenCV library to my workspace and designating it as a library project, I have one error that is troubling me. On the line:

mEngineService = OpenCVEngineInterface.Stub.asInterface(service);

I get the following error:

Stub cannot be resolved or is not a field.

Clearly, looking at the file, org.opencv.engine.OpenCVEngineInterface there is no field named Stub. So, what is a Stub, where can I find one? How can I fix this?

1 Answer 1

4

Use the aidl tool in the android sdk to convert the OpenCVEngineInterface.aidl file into OpenCVEngineInterface.java.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.