Android-SerialPort-API
Android-SerialPort-API copied to clipboard
libserial_port.so: has text relocations
依赖:implementation 'com.licheedev:android-serialport:2.1.3'
build.gradle配置:
ndk {
abiFilters "armeabi-v7a"
}
运行后出现以下异常
java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/包名.debug-1/lib/arm/libserial_port.so: has text relocations
注释ndk闭包可以正常运行。
有人提出这样的解决方案,但是我不知道说的Android.mk等几个文件是从哪里的源码复制过来的 https://blog.csdn.net/weixin_44151070/article/details/100627791