一. 首先将Android Studio更新到1.3版本
怎么升级到1.3在这就不明说,不懂自己百度.
二. NDK的支持包安装
离线安装方式(最后是使用些方法完成安装).
xxx:~ daiwenlong$ ndk-build
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
/Users/daiwenlong/Library/Android/android-ndk->?>r10e/build/core/build-local.mk:143: * Android NDK: Aborting . Stop.
配置AS
设置NDK位置 File -> Other Settings -> Default project Structure, 在里面设置NDK
到这边准备工作完成!
测试项目我一开始使用的是ndk里面的文件,但是没有成功运行起来.
我重新在github上拉了一份..成功运行项目.
有需要要自己下拉…
https://github.com/googlesamples/android-ndk.git
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/vispin/article/details/47375433