Android-SerialPort-API icon indicating copy to clipboard operation
Android-SerialPort-API copied to clipboard

libserial_port.so: has text relocations

Open mtj956052456 opened this issue 2 years ago • 1 comments

依赖: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闭包可以正常运行。

mtj956052456 avatar Jun 07 '22 12:06 mtj956052456

有人提出这样的解决方案,但是我不知道说的Android.mk等几个文件是从哪里的源码复制过来的 https://blog.csdn.net/weixin_44151070/article/details/100627791

mtj956052456 avatar Jun 07 '22 12:06 mtj956052456