I cant get flutter to work, I'm using visual studio and when I run flutter doctor I get this message, "Could not find a Flutter SDK. Please ensure flutter is installed and in your PATH (you may need to restart)."
I've tried making the path for flutter up to bin and it did not work. I uninstalled and re-installed and still did not work. What can I do to fix this?
How to make run for this project in the flutter
The Problem it shows me your flutter application is created an older version of the android embedding. so what should I do to solve problem please
delete android folder of project and run following cmd
flutter create .
I am working normally with Android Studio developing Flutter projects.
But now, after executing the command flutter doctor -v the output is as follows:
The only issue shown is that Flutter and Dart plugins are not installed, but they are:
Is that a bug only or should I change something in Android Studio?
I am on flutter channel stable, on dev channel the issue is not shown, everything is ok.
You need to setup the path to the Flutter SDK through settings. For detailed steps, you can refer the link attached.
The one that you carried out is enabling the Flutter IDE features.
Installing the plugin will enable the Flutter Specific features in the
Android Studio.
To make the Android studio to support Flutter development you need to set the path to the Flutter SDK in
Settings -> "Languages and Frameworks" -> Flutter -> "Set the path
to Flutter SDK" -> Click Apply.
Restart the Android Studio to make the changes to reflect. After completing the setup, you can run the flutter doctor to confirm that everything is fine.
I have just started learning flutter and mobile app development
When I click create new flutter project it does not show any template and shows this -create new flutter project wizard
My flutter doctor -v output is -picture of the output
I'm not sure how to create a new flutter project properly and start the actual development of app.
Please help, thank you
Go to the flutter app and then create the project. This will give you the default project to start.
First download Flutter SDK for windows from here.
Then extract the zip in C:\src\flutter which would look like this:
Go to the New project-->Flutter App in android studio and enter the SDK path:
Then click next and then finish:
Go to the android studio setting and install android sdk command-line tools:
Also after doing these steps go to C:\src\flutter and run flutter_console.bat file in which enter these commands:
flutter doctor to see everything is working correctly or not.
flutter doctor --android-licenses this command will check if all licenses are excepted or not. If not you should accept all.
i am trying to run flutter app in visual studio code by pressing F5,
connecting a real device, but unable to run the app
my android sdk path--
C:\src\flutter\flutter
my flutter app path--
D:\flutter\flut\flut
error message--
flutter doctor -v ----
Try the followings.
run the flutter doctor --android-licenses and accept licenses.
(it happened to me too)
Install the flutter & DART plugin in Android Studio.
Then run the project again
Add the flutter bin dir to your path
First you have to accept the licenses for Android SDK. Write the following commands in your terminal.
flutter doctor --android-licenses
After adding above command you have to accept all the list of licenses one by one to get ahead.
In your case, you have not installed dart and flutter plugin. So, close your project and go to "Welcome Screen" of IDE where you will see a "Configure" button. click on it and select "Plugins".
Now, search for Flutter and Dart and install both of them. After installing both restart your IDE to apply new changes.
Now, you're Done with the setup. Now, you can run your project in real device or emulator by configuring them.
you need to accept the android licence, to do so,
run the command
flutter doctor --android-licenses
in your terminal, and press yes when prompted in the terminal.
The flutter and dart plugins are also not installed on your Android Studio, to include these, add dart and flutter plugins and restart your Android Studio.
And finally run the command flutter doctor in your terminal and check every thing is installed correctly.
Had that issue. Had to downgrade Java from 11 to 8. After that I have been able to accept the all the licenses. But in order to run the app - had to upgrade back Java 11. And also has to be sure that that JAVA_HOME path is JDK, but not JRE. But that that is the next thing.