下载适合你的NDK 从下面的网址

(https://developer.android.com/ndk/downloads/index.html#download “android 官网下载地址”)

下载之后把文件拖到想要安装的目录 directory ,添加执行权,并且运行

cd directorychmod a+x android-ndk-r10c-darwin-x86_64.bin ./android-ndk-r10c-darwin-x86_64.bin

配置 环境变量

sudo gedit /etc/profile# add the next commands to the last lineexport ANDROID_NDK=you ndk pathexport PATH=$ANDROID_NDK:$PATH

confirm you config

sudo source /etc/profilecd you ndk path/samples/hello-jnindk-build

If you have successfully installed and configured the NDK, the screen on your target device looks as shown in Figure 1.

配置成功!

更多相关文章

  1. Ubuntu搭建Eclipse+JDK+SDK的Android
  2. Android文档资源大放送 感兴趣的话可以网盘下载(个人收集)
  3. windows下载android源代码
  4. Android(安卓)搭建环境配置
  5. windows下载android源代码
  6. Android(安卓)SDK中国在线更新镜像服务器 解决GOOGLE更新无法下
  7. android ndk环境配置
  8. pandaboard ES学习之旅——5 Android(安卓)Linux内核源代码下载
  9. Android开发前奏

随机推荐

  1. android -------- LiveDataBus的使用
  2. Android Q(10) SystemUI添加快速设置按钮
  3. Android RIL结构分析与移植
  4. (翻译) Backward Compatibility for Appl
  5. android ftp客户端简单实现
  6. Android中EditText输入框焦点从文字前面
  7. 关于Html中jsp调用Android中方法无效的一
  8. Android Loaders简介
  9. 使用架包实现android异步加载图片
  10. Android学习笔记---第三天---基础UI组件-