I have got a similar question like this. But this problem occurred after updating Android Studio to version 4.1 from version 4.0.
using flutter flutter doctor -v
To solve this Android Studio (not installed) You just need to flutter the config to set the android studio path.
Go to edit variables (This PC > properties > Advanced system settings > Advanced > Environment Variables). Edit (create if not exist) Path variable to "Extracted files: flutter\bin" then click ok. Download and install Git from https://git-scm.com/download/win. Open cmd, write "flutter", wait to download.
To create a plugin package, Use the --template=plugin flag with the Flutter create command. Use the --platforms= option followed by a comma-separated list to specify the plugin supports platforms. Available platforms are Android, iOS, web, Linux, macOS, and Windows.
I solve this problem like this
Only for MacOS
$ ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1
Switch from Flutter 1.22.2 channel stable
to channel dev
and you're good to go.
Copy and paste this in your cmd:
flutter channel dev
flutter upgrade
It is a flutter issue on 1.22 version, and happens after upgrading to Android Studio 4.1. It was already fixed on 1.23 version (dev channel). You can continue to run and work on your projects normally until this fix isn't ported to stable channel, or you can swith to dev channel and call flutter upgrade.
As said above, it is just a time-being issue. You can change channels by running flutter channel dev
. To know available channels you can run flutter channel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With