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