Flutter command not found

前端 未结 30 1378
独厮守ぢ
独厮守ぢ 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条回答
  •  Happy的楠姐
    2020-11-29 17:04

    Do the following steps:

    1. Download the Flutter SDK Flutter SDK Archive

    2. Extract it where do you want (for example /home/development/flutter)

    3. Set your PATH, edit your file with this command gedit ~/.profile, you need to add this line

    export PATH=[location_where_you_extracted_flutter]/flutter/bin:$PATH

    I showed you above where I've extracted mine, so my export will look like this

    export PATH=/home/myUser/development/flutter/bin:$PATH
    
    1. Save the file and close it.
    2. Run source ~/.profile to load the changes
    3. If you run now flutter doctor should work!

提交回复
热议问题