tilenskr / Face-Detection-and-Recognition-on-Google-Glass

This application enable user to detect faces (real-time) and create their own database for face recognition. It uses OpenCV for Android and JavaCV.
8 stars 4 forks source link

java.lang.NoClassDefFoundError: com.opencv.tilen.facedetectionandrecognition_urvrv.Gestures #1

Open amourxoxo opened 8 years ago

amourxoxo commented 8 years ago

Hi tilenskr, I'm having an issue with this code. It was successfully imported into my Android Studio, but when I tired to run, there's an error occur it says: java.lang.NoClassDefFoundError: com.opencv.tilen.facedetectionandrecognition_urvrv.Gestures at com.opencv.tilen.facedetectionandrecognition_urvrv.MainActivity.onCreate(MainActivity.java:121)

the code were point at this line: mGestureDetector = new Gestures(this, this); it's under onCreate(Bundle bundle) method.

I really appreciate your time and help me :) Thanks in advance!

tilenskr commented 8 years ago

Hi amourxoxo, I have looked at your issue. Currently I am not possessing Google Glass, so I cannot reproduce this error on Google Glass. I have installed this app on regular device (on android tablet) and got this error. What causes this error is that that Gestures class is extended and implemented with class and interface that are available only on Google Glass (package com.google.android.glass.touchpad - class Gesture Detector; take a look at https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/touchpad/GestureDetector). What are my suggestions (to try):

If you are still facing this issue after doing everything written above, please tell me.

thanhfphan commented 7 years ago

I have same issues like that, i follow 3 tips by tilenskr but it not work. And i see in AndroidManifest of you have

<intent-filter>
                <action android:name="com.google.android.glass.action.VOICE_TRIGGER" />
</intent-filter>

Does it need

<action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER" />

?? because when i try to run it show "Could not identify launch activity: Default Activity not found"