我遇到了以下错误:
bash: /home/william/.bashrc: line 1: syntax error near unexpected token `('
bash: /home/william/.bashrc: line 1: `i# ~/.bashrc: executed by bash(1) for non-login shells.'
这是我添加到.bashrc 文件的内容:
export ANDROID_HOME=/home/william/Android/Sdk/
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
答案1
您的第一行的第一个字符.bashrc
是i
。它不应该在那里。将其删除。