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

希望添加 jni 调用的演示示例 #1285

Open
iyzwei4666 opened this issue Jan 23, 2024 · 2 comments
Open

希望添加 jni 调用的演示示例 #1285

iyzwei4666 opened this issue Jan 23, 2024 · 2 comments
Labels
PR welcome 欢迎贡献代码

Comments

@iyzwei4666
Copy link

加上 cpp 之后 so 找不到,没看到代码有解压 so 的操作

@shifujun
Copy link
Collaborator

如果你能帮忙贡献一个方便用来测试的so,我可以简单的加到sample中演示一下。其实我有过这种想法,但是把那个so发到Maven上去,还得同时支持x86架构方便虚拟机测试,整体有些繁琐,就一直没做。

如果可以的话,麻烦发一个简单的返回字符串的so就可以了。打包成aar支持全部abi,发到公开的Maven上。

如果知道现成的so就更好了,我一直没找到。

shadow里有so的解压逻辑,搜索issue和提交日志都能看到。

@shifujun shifujun added the PR welcome 欢迎贡献代码 label Jan 24, 2024
@a491392040
Copy link

这个问题目前在测试过程中发现,需要宿主中有对应abi的文件目录,如果没有需要自己在宿主中建一个,否则会提示找不到SO库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR welcome 欢迎贡献代码
Projects
None yet
Development

No branches or pull requests

3 participants