Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to run OpenCV Android Samples in Android Studio?

I have been trying to run these samples for several hours, but I failed. I followed this tutorial successfully, but whenever I import any of the OpenCV Android samples I run into problems.

At first, right after I import a project I get this:

image description

After clicking 'OK' I get the 'SDK location not found' error, even though I put it as suggested. The local.properties file seems to be ignored.

image description

The above 'SDK not found' error will go away if I add a system variable as suggested, but then a similar one with NDK pops up.

What am I doing wrong? How can I run these samples with Android Studio? I am a complete novice to Android development. Any help will be appreciated.

How to run OpenCV Android Samples in Android Studio?

I have been trying to run these samples for several hours, but I failed. I followed this tutorial successfully, but whenever I import any of the OpenCV Android samples I run into problems.

At first, right after I import a project I get this:

image description

After clicking 'OK' I get the 'SDK location not found' error, even though I put it as suggested. The local.properties file seems to be ignored.

image description

The above 'SDK not found' error will go away if I add a system variable as suggested, but then a similar one with NDK pops up.

What am I doing wrong? How can I run these samples with Android Studio? I am a complete novice to Android development. Any help will be appreciated.