如何使用 Eclipse 在 Java 中使用 android 本机库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5190117/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to use android native libraries in Java using eclipse?
提问by Sandy
Can any body provide me a steps, How to use native libraries in eclipse. Your help highly appreciated. I don't want to create any native libraries. I just want to use predefined libraries.
任何机构都可以为我提供一个步骤,如何在 Eclipse 中使用本机库。非常感谢您的帮助。我不想创建任何本地库。我只想使用预定义的库。
采纳答案by Sandy
回答by Samuel Audet
You could also avoid dealing with JNI and the NDK altogether by using JavaCPP:
您还可以通过使用 JavaCPP 完全避免处理 JNI 和 NDK: