Flutter command not found

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

    You must have .bash_profile file and define flutter path in .bash_profile file.

    1. First of all, if you do not have or do not know .bash_profile, please look my answer: How do I edit $PATH (.bash_profile) on OSX?

    2. You should add below line(.../flutter_SDK_path/flutter/bin) in your .bash_profile

    export PATH=$PATH:/home/username/Documents/flutter_SDK_path/flutter/bin

    After these steps, you can write flutter codes such as, flutter doctor, flutter build ios, flutter clean or etc. in terminal of Macbook.

    @canerkaseler

提交回复
热议问题