tzutalin / dlib-android-app

:dragon: Android app to demo dlib-android(https://github.com/tzutalin/dlib-android). Use the prebuilt shared-lib built from dlib-android
Apache License 2.0
683 stars 246 forks source link

I have a problem when I use the package 'dlib' in my project #50

Open YuGongCharley opened 5 years ago

YuGongCharley commented 5 years ago

Cannot resolve corresponding JNI function Java_com_tzutalin_dlib_FaceDet_jniNativeClassInit Cannot resolve corresponding JNI function Java_com_tzutalin_dlib_FaceDet_jniInit Cannot resolve corresponding JNI function Java_com_tzutalin_dlib_FaceDet_jniDeInit Cannot resolve corresponding JNI function Java_com_tzutalin_dlib_FaceDet_jniBitmapDetect Cannot resolve corresponding JNI function Java_com_tzutalin_dlib_FaceDet_jniDetect

I really need some help ! thx a lot

tzutalin commented 5 years ago

Your java class name is not matched with the code in shared library (.so). Either u needs to choose the same java namespace along with class name or update the function in .so

YuGongCharley commented 5 years ago

@tzutalin I didn't use my own class name, it still is com_tzutalin_dlib 屏幕快照 2019-04-08 下午4 32 15 屏幕快照 2019-04-08 下午4 30 28 屏幕快照 2019-04-08 下午4 33 41 Thanks

tzutalin commented 5 years ago

did you apk contain the right share library(*.so) ?