I recently installed Android Studio , and to make the changes permanent I changed the PATH environment variable in .bashrc file, as shown in Second answer of this link.
I get following error messages or warning sort of things every time I launch a new terminal window.
bash: export: '=': not a valid identifier
bash: export: /home/android-studio/bin/:/usr/games:/home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin: ~/android-studio/bin': not a valid identifier`
This is what I did I opened .bashrc file using following command
nano .bashrc
then added following lines to .bashrc file.
export PATH = "$PATH:~/android-studio/bin"
Following is value in my path Variable
bash: /home/android-studio/bin: Is a directory
echo $PATH
, and what line did you add to your.bashrc
file? And did you run theecho 'export PATH="~/android-sdk/android-studio/bin/:$PATH"' >> ~/.bashrc
command? You many need to runsource ~/.bashrc
or login/logout after making chanes to the~/.bashrc file
(may not be a good idea if it is broken though)grep "export" ~/.bashrc