Home > Mobile >  Android run times wrong serial communication: Java lang. UnsatisfiedLinkError: Native method not fou
Android run times wrong serial communication: Java lang. UnsatisfiedLinkError: Native method not fou

Time:09-22

Android. Mk content is as follows:
LOCAL_PATH:=$(call my - dir)

The include $(CLEAR_VARS)

TARGET_PLATFORM: android - 3=
The LOCAL_MODULE: serial_port=
C
LOCAL_SRC_FILES:=SerialPort.LOCAL_LDLIBS:=- llog

The include $(BUILD_SHARED_LIBRARY)
Project directory as follows:



Run times wrong:
Java. Lang. UnsatisfiedLinkError: Native method not found: android. Serialport. Serialport. Open: (Ljava/lang/String; I) Ljava/IO/FileDescriptor;
Dynamic link the open method error in the SerialPort class, didn't understand what meaning,
Everyone a great god who encountered such a problem?

CodePudding user response:

The building Lord solved? Refer to

CodePudding user response:

I know a solution, the targetSdkVersion version below 25, but there will be other code adaptation problem, temporarily no other solutions
  • Related