如何使用 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:54:31  来源:igfitidea点击:

How to use android native libraries in Java using eclipse?

androideclipseshared-librariesandroid-ndk

提问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

I got the link, which described how to use native libraries in your eclipse step by step. Very nice tutorial.

我得到了链接,它描述了如何在 Eclipse 中逐步使用本机库。很不错的教程。

回答by Samuel Audet

You could also avoid dealing with JNI and the NDK altogether by using JavaCPP:

您还可以通过使用 JavaCPP 完全避免处理 JNI 和 NDK:

http://code.google.com/p/javacpp/#Instructions_for_Android

http://code.google.com/p/javacpp/#Instructions_for_Android