Javacpp-presets: java.lang.NoClassDefFoundError: org/bytedeco/javacpp/opencv_face$FaceRecognizer

Created on 19 Sep 2017  路  5Comments  路  Source: bytedeco/javacpp-presets

Hi,
I'm trying to use javacpp in order to use fisherFaces classifier. I'm using Android studio, and all the time that I try to run my code I get the error that I mentioned in the title and in this screenshot.

screen shot 2017-09-19 at 5 31 03

I installed tha jars manually and here are two screenshots of the dependencies under my build.gradle and my libs tree.

screen shot 2017-09-19 at 5 31 20
screen shot 2017-09-19 at 5 32 32

Can you please help with this?

Thanks in advance

question

Most helpful comment

Then don't use Android Studio.

All 5 comments

Could you also provide the list of files in your APK?

The code that I'm trying to compile and run isn't an android APK. It's a regular PC terminal program.

Then don't use Android Studio.

Tried Eclipse and It worked! Thank you very much.
Actually my project Includes some code for android(as client side) and some code for PC (as a server side), and I didn't want to to use two different IDEs.
I can't see the reason why it doesn't work on Android Studio, but it's ok for now to switch between Eclipse and Android Studio when I want to debug.

It should work, but you need to make sure the module for opencv gets
included by Gradle, which is obviously not happening for your project. In
the worst case, just add all dependencies manually, it will work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Maurice-Betzel picture Maurice-Betzel  路  32Comments

archenroot picture archenroot  路  29Comments

eix128 picture eix128  路  23Comments

breandan picture breandan  路  26Comments

blueberry picture blueberry  路  34Comments