搭建好android的环境变量后,为什么每次重新登录计算机的时候,就必须得重新输入
. /etc/profile
才能够使用android命令启动程序?
ringa_lee2017-04-22 09:02:10
I don’t know what configuration you wrote in the /etc/profile file. Android environment variables generally refer to the environment variables of the SDK. These variables can be written in the .bashrc or .profile file in the user directory. There is no need to write to /etc/profile, which is generally a system-level variable configuration
PHP中文网2017-04-22 09:02:10
It’s not clear what the problem is. You can try adding the following lines to /etc/rc.local
. /etc/profile
Execute it again when the system starts