android: command not found in new terminal window

后端 未结 3 1619
陌清茗
陌清茗 2021-01-26 04:55

There is a strange problem for me after i installed the android environment and put the paths like here in this question link

I write the command:

$ and         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-26 05:30

    The Android SDK manage opens successfully but when i open a new terminal tab and try to write the same command

    This is your issue. Your new instance of terminal won't have the path variable set the same.

    In your home directory, there should be a file named something like .bash_profile or .profile. Here we will want to either adjust the line that is alreadying exporting the path and append to it (:/path/to/android), or create a new line that does the following:

    export PATH=$PATH:/path/to/android
    

    Now every time you launch a new instance of terminal, that line will be automatically run, and you will have android on your path.

提交回复
热议问题