在Android中从Java调用C ++库 [英] Call C++ library from Java in Android
问题描述
是否可以从Android应用程序调用C ++库?如果是,怎么办?
Is it possible to call a C++ library from an Android app? If yes, how?
我在Android编程方面的经验为零(尽管有些Java编程经验),但我仍然想知道这是否可行.鉴于那里有许多出色的C ++库,如果无法从Android应用程序调用C ++库,我会感到惊讶.
I have zero experience in Android programming (some Java programming experience though) but I would still like to know if this is possible. Given the number of great C++ libraries out there, I would be surprised if it were not possible to call a C++ library from an Android app.
推荐答案
是的,有可能.您需要使用Android NDK构建C ++库. 新链接 https://developer.android.com/ndk/index.html
Yes, it's possible. You need to build your C++ library using the Android NDK. The new link https://developer.android.com/ndk/index.html
这篇关于在Android中从Java调用C ++库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!