Flutter & Dart plugin not installed error when running flutter doctor - flutter

I don't know how to fix this problem.
I tried to uninstall and install the Flutter & Dart plugin.

Related

Android Studio Flutter - "'Pub get' has not been run" message and IDE higlight syntax in flutter lib code, but ot in main class and code runs fine

I'm starting to learn flutter. So i have Android Studio with updated Flutter plugin
I have Flutter 3.3.7 and Dart 2.18.4
Also i have this ispection:
'Pub get' has not been run
But code runs fine and there is no syntax error in main class
I tried to run flutter doctor and sequentially ran these commands
flutter doctor
flutter clean
flutter pub get
But nothing happend.
To solve inspection problem I tried to click on Get Dependencies and Upgrade dependencies, but nothing changed

How to downgrade flutter plugin using Android Studio?

I have upgraded to the latest version of the flutter plugin but breakpoints stopped working and I need to downgrade to another version:
But there is no option for downgrading(only disable and uninstall/install).
How can I downgrade it using Android Studio or dev tools?
In your terminal run these code:
flutter downgrade <yourVersion> // for example: flutter downgrade 3.0.4
flutter doctor

why Flutter doesn't build new code and keep the outdated?

Flutter doesn't build new code and keep the outdated
I have a problem..flutter doesn't build new code with hot reload nor restart ..every time I have to delete build folder, run flutter clean and run flutter pub get && flutter run and this happen with any new project I create
Beside that, These command doesn't work in vscode terminal it must be Linux terminal..when i run flutter doctor in Linux terminal it works fine but in vscode terminal it says:
[✗] Android toolchain - develop for Android devices
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
however i have installed cmdline-tools and all sdk tools from Android Studio.
I tried to uninstall vscode and flutter and reinstall them but the issues are still the same.

Not possible downgrade to Flutter 1.22.6

I am trying to downgrade my Flutter version to 1.22.6
I am using Flutter channel stable.
This is the output when I put in the terminal the command
flutter downgrade 1.22.6
There is no previously recorded version for channel "stable"
Yesterday was the last time I could downgrade to Flutter 1.22.6
Are there any changes in Flutter lastly?
Version 1.22.6 is listed in https://docs.flutter.dev/development/tools/sdk/releases?tab=macos
Should I download the SDK by hand?
It's no more possible to downgrade from flutter 2.xx to 1.xx. However you can use flutter Version Manager fvm its specifically made to control flutter versions plus along with that you can install flutter sidekick as well.Use multiple versions of flutter specific for your projects I am attaching link for you.
FVM Flutter Sidekick

Android Studio Dart And Flutter Plugin is not installed

Here is the flutter doctor result:
[√] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 10.0.18362.30], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
I have already installed the flutter plugin. But the problem still exists. How can I fix this?
Just run this on your terminal (Mac users)
ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1
Well hello all
I would suggest you all to follow the steps what flutter documentation sites tells you to do
For windows-->There are some people who got detected flutter and dart plugins by the flutter doctor and few are not
I got this issue when I tried to install ...
I did everything like installed flutter and dart plugin still my flutter doctor haven't detected the plugins ...
following steps worked for me
flutter channel dev
flutter upgrade
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
flutter doctor -v
note :--- flutter config --android-studio-dir="C:\Program Files\Android\Android Studio" should be example flutter config "C:\Program Files\Android\Android Studio"
above steps worked for me i hope it will helps you too :)
change channel master to dev.
then upgrade.
flutter channel dev
flutter channel upgrade
try again
flutter doctor
Note: I think it's Android Studio 4.1 issue...
Since you say you have flutter plugin installed in Android Studio, and if Android Studio correctly shows your installed plugin, there is no reason to believe any third-party tool reporting otherwise.
Also, this will not affect your flutter development and your IDE plugins will work as expected inside the IDE and flutter tool's commands work independent of the IDE in use.
Android Studio 4.1 apparently changed its default plugin install path.
Related github issue: [flutter_tools] IDE plugin validators should be deprecated #61246
Flutter does not directly use the IDE plugins, so doctor failing to detect them does not affect any behavior (it's just annoying).
open terminal:
run> flutter channel dev
run> flutter channel updrade
open terminal:
Mac User:
flutter config --android-studio-dir=/Applications/Android\ Studio.app
Reinstall Flutter Plugin from Android Studio
Are you using Android Studio V 4.1?
With Android Studio V4.1 there is a problem.
Try to reinstall Android Studio but Version 4.0.1 and try it again, chances are this will fix your problem.
Open Android studio
Follow the Path Configure > Plugins > marketplace > search Flutter & Dart > Install
Restart IDE(Android studio)
Open Terminal and Export Flutter Path
and run flutter doctor -v
If you are upgrading for an existing project:
Run
git clone https://github.com/flutter/flutter.git
in your terminal.
The be sure to delete the Flutter folder in your App's root directory. Otherwise you will get over 50k errors popping up
Check your flutter PATH
which flutter
if you get /path-to-flutter-sdk/bin//flutter or similar you may have added an extra / in your $HOME/.rc_file. Remove the last '/', restart terminal and try again
this worked for me
flutter channel dev
flutter doctor