在使用Android NDK进行编译的时候可能会出现
Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !
查看错误原因可大概知道,ndk使用了awk工具,而默认的这个awk工具过期了或者不是gawk和nawk,需要通过一个环境变量HOST_AWK来指定

但是指定了之后,还是有此错误,于是再仔细看了下错误信息,发现有这么两行
/home/sunting/mydocument/developer-tool/android-ndk-r7/prebuilt/linux-x86/bin/awk: 1: ELF: not found
/home/sunting/mydocument/developer-tool/android-ndk-r7/prebuilt/linux-x86/bin/awk: 4: Syntax error: word unexpected (expecting ")")
于是到相关目录下查看,发现真有一个awk执行文件,也就是说ndk默认自带了一个过期的awk工具,删掉它即可(为保险起见可先cp一份),重新ndk-build,成功!

转载至:http://blog.csdn.net/gaomatrix/article/details/7061119

更多相关文章

  1. android XML解析详解(封装好的工具类)
  2. android新建工程报找不到android:preserveIconSpacing的错误
  3. Android自动化测试工具——robotium
  4. Android Studio导入(import)工程时常见错误
  5. Android调试工具之ADB
  6. android内存分析工具- MAT的初识(1)
  7. Android开发人员必备的10个开发工具
  8. adb错误:Failed to execute android command 'adb devices'.

随机推荐

  1. Android中的BroadCast简单使用
  2. nfs: server 192.168.0.3 not responding
  3. android添加hid设备驱动
  4. Android调用camera错误setParameters fai
  5. android 两种按钮的动画效果
  6. android NDK学习篇5之hello-jni——jni中
  7. 说说 Android(安卓)的 Material Design
  8. android之ListView上拉加载更多和下拉刷
  9. [置顶] 【SwipeRefreshLayout】Google官
  10. Eclipse如何开发Android?