AndroidStudio 工程添加NDK支持

本文默认已配置好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. 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值