Flutter command not found

0 votes

Apparently, none of the Flutter commands are working in the terminal of Android Studio which I believe I am trying to run it at the root of my project.

bash: flutter: command not found
Mar 29, 2023 in Flutter by sarit
• 1,830 points
17,789 views

1 answer to this question.

0 votes

This error message usually appears when the Flutter SDK is not properly installed or added to the system's PATH variable.

To fix this issue, you can follow these steps:

  1. Make sure that the Flutter SDK is properly installed on your system. You can download it from the official Flutter website.

  2. Add the Flutter bin directory to your system's PATH variable. You can do this by opening your terminal and running the following command:

    export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin"

    Replace [PATH_TO_FLUTTER_GIT_DIRECTORY] with the actual path to your Flutter installation directory.

    You can also add this line to your ~/.bashrc file to make the changes permanent.

  3. Restart your terminal or source your ~/.bashrc file by running the following command:

    source ~/.bashrc

  4. Try running the flutter command again in your terminal. It should work now.

If these steps don't solve the issue, you can try reinstalling Flutter or checking if there are any issues with your system's PATH variable.

To know more, join our Flutter Certification Course today.

answered Mar 29, 2023 by vishalini

Related Questions In Flutter

0 votes
1 answer
0 votes
1 answer

flutter app not running on ios simulator after adding firebase notification

The error message you provided seems to ...READ MORE

answered Apr 10, 2023 in Flutter by vishalini
5,271 views
0 votes
1 answer

Flutter Like Button Animation Not Working After Adding Method

It seems like the issue might be ...READ MORE

answered Apr 12, 2023 in Flutter by Tanishqa
• 1,170 points
880 views
0 votes
1 answer

flutter, avatarGlow is not working at all with fluoatingbutton

Based on the code you provided, it ...READ MORE

answered Apr 14, 2023 in Flutter by Anitha
701 views
0 votes
1 answer

Dart SDK is not configured

The error message "Dart SDK is not ...READ MORE

answered Mar 9, 2023 in Android by pooja
19,386 views
0 votes
1 answer

flutter doctor --android-licenses gives a java error

This error usually occurs because the Java ...READ MORE

answered Mar 24, 2023 in Flutter by venky
4,415 views
0 votes
1 answer

"Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8"

Based on the error message, the Android ...READ MORE

answered Apr 14, 2023 in Flutter by pooja
9,298 views
0 votes
1 answer

What is the future of flutter?

Hi@MD, Flutter is a rather new cross-platform framework ...READ MORE

answered Jul 17, 2020 in Others by akhtar
• 38,260 points
1,146 views
0 votes
1 answer

Xcode Cloud not building my Flutter Project

It's difficult to determine the exact cause ...READ MORE

answered Apr 11, 2023 in Flutter by Anitha
1,863 views
0 votes
1 answer

Flutter Http line not getting executed

The issue might be related to the ...READ MORE

answered Apr 12, 2023 in Flutter by pooja
1,098 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP