We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rust JNI
I have wrote a JNI function in lib.rs by kotlin, but not call native func.
lib.rs
When I convert to Java, native func can be called.
Java
Looks like kotlin can not call native func ?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Because your Java and kotlin codes are not consistent, kotlin uses static methods, you can try this
class Airbag { external fun test(input: String) companion object { init { System.loadLibrary("airbag") } } }
No branches or pull requests
I have wrote a JNI function in
lib.rs
by kotlin, but not call native func.When I convert to
Java
, native func can be called.Looks like kotlin can not call native func ?
The text was updated successfully, but these errors were encountered: