如何安装android NDK?

我从这里下载了Android NDK: https://developer.android.com/ndk/downloads/index.htmlhttps://developer.android.com/ndk/downloads/index.html for Linux 64-bit(x86)。 这是一个我可以轻松提取的ZIP文件,但是我应该在哪里提取/安装以使Android NDK正常运行?

好吧,手动下载NDK可能不是开始的好选择。

我强烈建议您遵循以下教程: https : //developer.android.com/ndk/guides/index.html

如果您仍然感到困惑,请查看以下主题: https ://stackoverflow.com/questions/7899740/android-ndk-tutorial-guide-for-beginners

Android NDK在此处以zip文件forms提供:

https://developer.android.com/ndk/downloads/index.html#stable-downloads

解压缩后,可以在其中构建许多示例程序。

在过去,使用NDK的方式记录在这里:

https://tthtlc.wordpress.com/2011/04/26/building-hello-gl2-sample-in-ndk-a-internal-view/

https://tthtlc.wordpress.com/2012/01/22/how-to-compile-the-android-ndk-examples-using-command-line-tools/

https://tthtlc.wordpress.com/2013/09/24/how-to-compile-android-ndk-samples-in-ubuntu-linux/

对于最新版本,我在这里提取了一些示例:

在此处输入图像描述

您自己导航和编译样本。