-
Notifications
You must be signed in to change notification settings - Fork 23
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
Android 平台上 NativeLoader 运行异常 #5
Comments
@Heart-Beats 上一个commit忘记在CMakeLists.txt中添加NativeLoader.java文件了,在CMakeLists.txt文件第41行插入
改动在这儿,然后重新编译就好了。 |
谢谢,很关键 |
我这边抽了时间在项目的 CMake 文件中加上了相关的代码: 这块我是可以理解的,因为 NativeLoader 这个类里的代码在 Android 应用运行时加载的动态库不对: |
@Heart-Beats 能否将您的这个Android工程发给我呢?我的邮箱:[email protected] |
相关代码我已经上传到这个仓库:GmSSL-Android |
如图,我将 gmssl 的源码以及 gmssl-java 集成在一起编译, 在安卓手机上运行时
NativeLoader.load()
会报错: lib file is not found!, 我改换为安卓上的加载动态库System.loadLibrary("gmssljni");
, 运行没有问题,希望可以兼容处理一下The text was updated successfully, but these errors were encountered: