Java.lang.UnsatisfiedLinkError:No implementation found for

Source: Internet
Author: User

Recently in the android4.4 5.0 project, often encountered java.lang.UnsatisfiedLinkError:No implementation found for problem, This problem occurs mainly because the MTK or Qualcomm 5.0 framework code compared to 4.4 has a great change, especially its JNI library, etc. have changed, this error indicates that the Java layer reference is not found that the JNI function. Possible causes for recent discoveries are as follows:

1. The System.loadlibrary () function is not called to load the library. In 4.4, some of the appropriate load functions for the application occurred in the framework, but not in 5.0, so you first need to check if the load function exists. For applications, the load function is best written in application, ensuring that it is bound to be loaded. Note that when the library is loaded, such as the library name is libtest.so, then the corresponding load function is written as system.loadlibrary ("test");

2. The package or class name corresponding to the upper Java JNI file for the underlying library file has changed, which requires checking the location of the Jni file Registration Jniregisternativemethods (), which corresponds to the package name and class name of the upper Java JNI.

3. The underlying library file and the upper Java JNI file corresponding to the function name, function parameters, etc. have changed, this need to check Jninativemethod Gmethods[],jni function registration place.

Java.lang.UnsatisfiedLinkError:No implementation found for

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.