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

编译完成,但是遇到了 java.lang.UnsatisfiedLinkError #91

Open
huluwa-dev opened this issue Mar 9, 2021 · 2 comments
Open

编译完成,但是遇到了 java.lang.UnsatisfiedLinkError #91

huluwa-dev opened this issue Mar 9, 2021 · 2 comments

Comments

@huluwa-dev
Copy link

huluwa-dev commented Mar 9, 2021

在Android的示例中,MainActivity中,
调用TokenCore.INSTANCE.init_token_core_x(jsonObject.toString());
报以下错误:
java.lang.UnsatisfiedLinkError: Error looking up function 'init_token_core_x': undefined symbol: init_token_core_x

注释此行代码,app能正常运行,点击按钮无报错,说明TokenCore.INSTANCE.call_tcx_api和TokenCore.INSTANCE.get_last_err_message都能找到对应方法。就唯独TokenCore.INSTANCE.init_token_core_x会报错。

编译环境:Mac OS 11.1
NDK: 21.0.6113669

@aihjq520
Copy link

aihjq520 commented May 8, 2021

遇到了同样的问题 有人可以解答一下吗

@XuNeal
Copy link
Contributor

XuNeal commented May 9, 2021

目前 init_token_core_x 也已经放入了 call_tcx_api 内,可能example 没有更新,具体使用方法可参见:https://github.com/consenlabs/token-core/blob/dev/tcx/src/lib.rs#L61

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

No branches or pull requests

3 participants