I have made modifications to several example OpenCV projects within Android, however I am having some issues with using OpenCV successfully in a new Android project.
The documentation on using OpenCV with Android says to complete the following steps to add OpenCV to an Android project –
- ensure the Android project is in the same workspace as OpenCV
- add a reference to the OpenCV project by going to Properties > Android > Library > Add and choosing the OpenCV Library project
I have followed both of these steps, however when I compile my application I receive the console error –
Could not find OpenCV-2.3.1.apk!
When creating a new Android project, the only thing you need to do is
You should not then explicitly add OpenCV Library project into your new Android project’s build path:
If you do latter step, you will get the exact error Could not find OpenCV-2.3.1.apk! described in the question.
Check out the New Android project’s build path and remove OpenCV project if it exists, then give it another try and see if this helps.