Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libserial_port.so: has text relocations #44

Open
mtj956052456 opened this issue Jun 7, 2022 · 1 comment
Open

libserial_port.so: has text relocations #44

mtj956052456 opened this issue Jun 7, 2022 · 1 comment

Comments

@mtj956052456
Copy link

依赖: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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant