Flutter command not found

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

    If you are on MAC OS

    First find the location of your flutter sdk

    Flutter SDK File: Write the below command on your terminal to download the flutter sdk

    git clone https://github.com/flutter/flutter.git
    

    For example: the SDK file name is flutter and it is in Downloads

    Close and open your terminal again

    and enter the following commands in your terminal

    cd Downloads     #go to Downloads
    
    cd flutter   #go to flutter
    
    pwd       #/Users/[USERNAME]/downloads/flutter/
    
    whoami      #Your [USERNAME]
    
    export PATH="/Users/[USERNAME]/downloads/flutter/bin":$PATH
    

    I hope you will manage on based on the example I have given. Upvote the answer if you find it useful.

提交回复
热议问题