Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

编译完成,但是遇到了 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants