Flutter command not found android studio

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
19,716 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

Flutter Outline Shows "Nothing to show" in android studio

There are a few possible solutions for ...READ MORE

answered Mar 30, 2023 in Flutter by vishalini
3,424 views
0 votes
1 answer

Flutter Projects & Android X Migration Issues

Migrating to AndroidX can be a frustrating ...READ MORE

answered Mar 20, 2023 in Flutter by Tej
707 views
0 votes
1 answer
0 votes
1 answer

How to change Android minSdkVersion in Flutter Project?

Yes, you can change the minSdkVersion in ...READ MORE

answered Mar 21, 2023 in Flutter by Tej
11,614 views
0 votes
1 answer

Dart sdk is not configured android studio

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

answered Mar 9, 2023 in Android by pooja
21,054 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,685 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,559 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,256 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
2,086 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,217 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