简体   繁体   中英

Cannot recognize native functions in android studio

I have a simple face detection for android based on Dlib, I get this code from Here , I build project and it runs on my phone but it seems have got some problem, this code is made by Dlib and use some Native function, it shows me this Error (but this error doesn't stop build and I can generate APK).

For example I have this function:

@Keep
private synchronized native int jniDeInit();

and it gives me this error like a popUp above it: Error

Cannnot resolve corresponding JNI function Java_com_tzutallin_dlib_PedestrianDet_jniDeInit , Reports native method declartions in Java where no corresponding JNI function is found in the project

Is there any config that I'm not using when I import someone project that's based on Native functions?

Thanks

this post ( Cannot resolve corresponding jni fuction ) says such things are not surprising and you can simply ignore it or suppress it. It will work at run time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM