配置NDK syntax error: unexpected end of file 解決
android NDK開發中,在window環境下需要安裝cygwin來模擬linux環境,在網上配置文章較多,不詳述,在配置的過程中,需要修改cybwin\home\XXX(you computer name)目錄下的.bash_profile中末尾新增
ANDROID_NDK_ROOT=/cygdrive/d/andorid/NDK/android-ndk-r7b
export ANDROID_NDK_ROOT
ANDROID_NDK_ROOT(可以隨意命名)。在使用UltraEdit開啟.bash_profile檔案的時候,點了轉化為DOS format。
在啟動cygwin,會顯示
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: /home/lenovo/.bash_profile: line 47: syntax error: unexpected end of file
在cygwin中輸入:dos2unix -n .bash_profile .bash_profile
關閉重新開啟cygwin,ok了。所以再一次提醒,不要用window裡的記事本或者寫字本開啟修改,使用UltraEdit不要轉化格式,因為在window下和linux中回車符是不相同的。
相關文章
- Solaris syntax error: unexpected end of fileError
- line 10:syntax error: unexpected end of fileError
- syntax error near unexpected token `問題的解決Error
- gzip: stdin:unexpected end of file
- syntax error near unexpected token `Error
- Nginx unexpected end of file 配置證書遇到問題,如何解決?Nginx
- pecl PHP Parse error: syntax error, unexpected 'new' (T_NEW) 以及 XML缺失解決辦法PHPErrorXML
- Laravel 8使用 佇列任務出現 「 syntax error, unexpected ')' 」錯誤解決Laravel佇列Error
- 解決:npm install ERR! Unexpected end of JSON inputNPMJSON
- shell 指令碼報錯^M: syntax error near unexpected token指令碼Error
- 如何解決"Parse error: syntax error"Error
- ScalaSigParserError: Unexpected error: Not a valid class fileError
- 帝國CMS提示parse error syntax error的解決方法Error
- CentOS7使用exp/imp時報錯:bash: syntax error near unexpected token `(CentOSError
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- Linux 5中出現的-bash: syntax error near unexpected token `('錯誤LinuxError
- 解決 eslint 的 Parsing error: Unexpected token 錯誤EsLintError
- 如何解決"You have an error in your SQL syntax"ErrorSQL
- ORA-03113: end-of-file on communication channel 解決方法
- 解決laravel出現Syntax error or access violation: 1055 ‘***‘ isn‘t in GROUP BYLaravelError
- PbootCMS 升級後網站打不開,解析錯誤 Parse error: syntax error, unexpected ‘:’, expecting ‘{’怎麼辦boot網站Error
- 記錄某次解決`Okhttp java.io.EOFException: \n not found: size=0 content= unexpected endHTTPJavaException
- TNS-04414 file error 錯誤解決Error
- eclipse 引入外部js檔案報Syntax error on token 錯解決方案EclipseJSError
- ndk編譯C++,提示找不到標頭檔案(ndk-build error string No such file or directory)編譯C++UIError
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- 解決 Error: ENOSPC: System limit for number of file watchers reachedErrorMIT
- Syntax error, unrecognized expression: li[value=]ErrorZedExpress
- exp tables sh: Syntax error: `(' is not expectedError
- 【shell 】syntax error in conditional expressionErrorExpress
- Oracle startup報錯ORA-03113: end-of-file on communication channel 解決方案Oracle
- QT 出現 warning: unterminated #pragma pack (push, ...) at end of file 問題的解決方案QT
- Ubuntu下 fatal error: Python.h: No such file or directory 解決方法UbuntuErrorPython
- 完美解決 Uncaught SyntaxError: Unexpected token ‘<‘Error
- Newline required at end of file but not foundUI
- Oracle安裝報錯syntax errorOracleError
- IMP-00009: abnormal end of export fileORMExport
- unexpected inconsistency;RUN fsck MANUALLY 解決方案