本文默认已配置好ndk开发环境,网上很多详细的配置文章,不在此赘述。直接进入正题:
开发环境
- Ubuntu 14.04 (64位)
- AndroidStudio 3.0.1
具体实现
方法一: 新建项目时勾选 Include C++ Support
1. File>new Project ,如图(见高亮部分):
2. 一路Next下去到最后选择到C++ 的支持环境
如图,详情请参考[]
具体参数释义:官方文档Add C and C++ Code to Your Project
In the Customize C++ Support section of the wizard, you can customize your project with the following options:
C++ Standard: use the drop-down list to select which standardization of C++ you want to use. Selecting Toolchain Default uses the default CMake setting.
Exceptions Support: check this box if you want to enable support for C++ exception handling.

674

被折叠的 条评论
为什么被折叠?



