Flutter command not found

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

    Add Path in this way in .bashrc for Linux and for Mac .bash_profile of android sdk and tools with flutter

    export PATH=$PATH:/user/Android/Sdk/platform-tools:/user/Android/Sdk/build-tools/27.0.1:/user/Android/Sdk/tools:/user/Android/Sdk/tools/bin:/user/Documents/fluterdev/flutter/bin:$PATH
    

    Then run this command

    On Linux

    source ~/.profile

    On Mac

    source ~/.bash_profile or open -a TextEdit ~/.bash_profile

    Then you can user any of flutter command like to build fluter apk

    flutter build apk

提交回复
热议问题