I encountered a strange problem today. When calling native methods, I reported the following error:

java.lang.UnsatisfiedLinkError: No implementation found formethodsCopy the code

As it literally means, there is no implementation of this native method, and the headache is that this crash will only occur on one phone.

  1. inJNI_OnLoadMethod to add log, found no print.
  2. Create a new dynamic library and find that it can be called normally, only this dynamic library has a problem.
  3. Under the prompt of the group leader, I modified the dynamic library name and found it normal. The name of the original dynamic library wasutilsIt should be the same name as other dynamic libraries in the system.

Normal should be to search the application’s dynamic library first, and then search the system’s dynamic library, may be this phone is special.