Flutter command not found

前端 未结 30 1434
独厮守ぢ
独厮守ぢ 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:21

    Ubuntu 16.04 :-

    I added the path correctly for Flutter, Java, Android Studio and Android SDK in .bashrc file , but when I run flutter doctor, the terminal returns

    flutter: command not found

    Solution :-

    So,first I had to always run ->

    sudo su

    then ->

    source /home/your_name/.bashrc

    Then run flutter doctor, it works fine.

    So everytime, If I want to run flutter doctor, I have to run these above 2 commands.

    Hope it helps :)

提交回复
热议问题