Home  >  Q&A  >  body text

cordova - ubuntu 搭建android,配置了环境变量后的问题

搭建好android的环境变量后,为什么每次重新登录计算机的时候,就必须得重新输入

. /etc/profile 

才能够使用android命令启动程序?

天蓬老师天蓬老师2736 days ago562

reply all(3)I'll reply

  • ringa_lee

    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

    reply
    0
  • PHP中文网

    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

    reply
    0
  • ringa_lee

    ringa_lee2017-04-22 09:02:10

    Please post how you set it up

    reply
    0
  • Cancelreply