android: command not found in new terminal window

后端 未结 3 1658
陌清茗
陌清茗 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:12

    After adding the PATH entry to your ~/.profile file as mentioned above, log out and back in. That way your entire session will have android in the path.

    I would also add platform-tools to your PATH as well. That give you adb.

    So, add something like this to your ~/.profile:

    export PATH=$PATH:path_to_sdk/tools:path_to_sdk/platform-tools
    

    Where you replace "path_to_sdk" in the example with the directory were you extracted the Android SDK (e.g. /usr/local/android-sdk-linux).

提交回复
热议问题