Flutter command not found

前端 未结 30 1433
独厮守ぢ
独厮守ぢ 2020-11-29 16:54
bash: flutter: command not found

Apparently, none of the flutter commands are working on the terminal of an android studio which I believe I am tryi

30条回答
  •  孤独总比滥情好
    2020-11-29 17:02

    Do this to add flutter permanently to your path (in Ubuntu):

    1. cd $HOME
    2. gedit .bashrc
    3. Append the line:
    export PATH="$PATH:[location_where_you_extracted_flutter]/flutter/bin"
    

    in the text file and save it.

    1. source $HOME/.bashrc
    2. Open new terminal and and run flutter doctor command

提交回复
热议问题