Search code examples
androidfluttermacosdartandroid-studio

"zsh: command not found: flutter" m2 pro silicon


I installed Android Studio on my computer to develop my flutter and dart project.

enter image description here

However, I downloaded the flutter folder for macos silicon from the flutter site and added it to a folder named "yusa".

enter image description here

I exported many file paths with the "nano .zshrc" command, but no matter what I do, when I type "flutter" or "flutter doctor" into the terminal, "zsh: command not found: flutter".

enter image description here

I get an error. My computer does not recognize flutter.

My problem has been going on for days and I need your help.

Thank you all in advance.


Solution

  • I solved the problem.

    My .zshrc path was as follows:

    ZSH_THEME="yusa"
    export PATH=/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr$
    
    export PATH="$PATH:/Users/yusa/development/flutter/bin"
    

    I asked the AI ​​to edit it correctly for me. He suggested me to edit it like this and my problem was solved.

    ZSH_THEME="yusa"
    export PATH="/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/Users/yusa/development/flutter/bin:$PATH"