0

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

Pochmurnik
  • 780
  • 6
  • 18
  • 35
ali baba
  • 3
  • 1
  • This is not build error, this is static analysis from your IDE saying it can't find the symbol. That's pretty normal. Try ```File -> Invalidate caches``` to see if it resolve problem. – thachnb Dec 21 '18 at 20:09
  • @thachnb not working for me :( – ali baba Dec 23 '18 at 11:22

1 Answers1

0

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.

NewAS
  • 26
  • 1
  • 4
  • it's seems you're right , my fault in this code was in another place but i thought this warning/error/or_any_thing_it_is is the problem – ali baba Dec 25 '18 at 21:01