Android - Command not found

前端 未结 9 1920
情书的邮戳
情书的邮戳 2020-12-07 11:37

I am trying to run the command in ubuntu

android update project --path .

However I am getting a android:command not found

9条回答
  •  误落风尘
    2020-12-07 12:14

    Sometimes even after you add your android_sdk/ dir path from command line it still doesn't work and gives the command not found error, in that case follow these steps. I ran through this issue myself and i tried all the above steps and none worked so i thought i should share and perhaps that might help somebody.
    ( android-sdk-linux is the name of android sdk library which you have extracted ).

    1) Open the bashrc file from command line

    gedit ~/.bashrc
    

    2) Add following lines at the top.

    export PATH=${PATH}:~/android-sdk-linux/tools
    export PATH=${PATH}:~/android-sdk-linux/platform-tools
    

    3) Log out of the system and log back in. Type Ctrl + Alt + T to open command line and type android to launch the software.

提交回复
热议问题