在編譯Hello-jni時候出現以下錯誤訊息
$ ndk-build
C:\cygwin\android-ndk-r7\prebuilt\windows\bin\awk.exe: can't open
file /android-ndk-r7/build/awk/check-awk.awk
source line number 1 source file
/android-ndk-r7/build/awk/check-awk.awk
context is >>>
<<< Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK
to point to Gawk or Nawk !
/android-ndk-r7/build/core/init.mk:258: ***
Android NDK: Aborting. . Stop.
解決方法:將C:\cygwin\android-ndk-r7\prebuilt\windows\bin\awk.exe改名或刪除即可解決
參考文獻:http://jilinmo.diandian.com/post/2011-12-19/10339830