在安装Android NKD后执行make-standalone-toolchain.sh时出现错误“make-standalone-toolchain.sh: 701: ./make-standalone-toolchain.sh: Syntax error: redirection unexpected”,同时执行时出现警告“WARNING: The shell running this script isn't bash. Although we try to avoid bashism in scripts, things can happen.”
打开脚本701行
for ABI in $(tr ',' ' ' <<< $ABIS); do
经查,应为"<<<"的问题。在执行时解释器指定为bash,则无错误。