Android amap Native method not found: com. autonavi. amap. mapcore. MapCore. nativeNewInstance :( Ljava/lan

Source: Internet
Author: User
Tags lenovo

Android amap Native method not found: com. autonavi. amap. mapcore. MapCore. nativeNewInstance :( Ljava/lan

Android amap java. lang. UnsatisfiedlinkError Native method not found: com. autonavi. amap. mapcore. MapCore. nativeNewInstance :( Ljava/lang/String ;)

 

I encountered a bug on other models. I only used AMAP on lenovo's mobile phone. A bug occurred. I checked the log and the Native method not found: com. autonavi. amap. mapcore. mapCore. nativeNewInstance

 

The error type is java. lang. UnsatisfiedlinkError.

 

After reading the java jdk api:

 

Java. lang. UnsatisfiedlinkError:

 

Thrown when an attempt is made to invoke a native for which an implementation cocould not be found.

 

The Local interface is not found. It seems that jni does not find the corresponding class library.

 

Compared with the demo provided by autonavi, The x86 folder is missing.

 

Paste the x86 folder to the lib directory and run it.

 

 

Search later to find out that some lenovo Mobile Phones use x86 processors.

 

X86 and arm need to be treated differently

 

I feel good again.

 

Daily Improvement

 

Related Article

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.