Ask Your Question

Mick's profile - activity

2016-09-22 01:35:51 -0600 received badge  Famous Question (source)
2015-12-24 00:05:39 -0600 received badge  Notable Question (source)
2015-03-19 02:01:24 -0600 received badge  Popular Question (source)
2014-03-04 03:12:58 -0600 received badge  Editor (source)
2014-03-04 03:12:17 -0600 asked a question the import org.opencv.android cannot be resolved

I am attempting to get opencv for android/eclipse working for the first time. I am following this documentation. I have imported the library and samples into a new eclipse workspace. The OpenCVLibrary project appears to be built without error.

Now I'm trying to get OpenCV Sample - face-detection up and running, but am getting errors like

the import org.opencv.android cannot be resolved

and

the import org.opencv.core cannot be resolved

at the start of the java files.

I had noticed that in the properties of the library project, the "is library" check-box had not been ticked, so I ticked it and did a clean and rebuild. But this made no difference. Any idea what I've done wrong?

Edit: I looked round the files within the library project trying to determine what the actual library file was. My guess was that it would appear within the bin directory (just like where apk files appear). In that directory I saw a file called "opencv library - @[email protected]", which I thought could be it. But when I looked at its properties I saw it was only 166 bytes long- presumably much too small. I could not figure out any other file within the project's directory tree which looked like it could be the actual opencv library.