Error:Syntax error: redirection unexpected


在安裝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,則無錯誤。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM