export PATH=/opt/android-studio/bin:$PATH
vim ~/.profile
,添加行:
export PATH=/opt/android-studio/bin:$PATH
使生效
source .profile
vim /etc/profile
在里面加入:
export PATH=/opt/android-studio/bin:$PATH
使生效
source /etc/profile
转载自:https://blog.csdn.net/Bleachswh/article/details/51334661