Kernel binary: invalid kernel binary format version.
I get this error when i try to create the flutter project in android studio.
Try "flutter clean". But this might not help.
I'm no expert but if this doesn't help you'll probably end up uninstalling and reinstalling Flutter.
Related
I am trying to install Flutter in Android Studio. I have installed flutter and dart plugins in Android Studio and I have also downloaded the flutter sdk and set the path.
But when I am running Flutter Doctor in the terminal it displays:
Flutter plugins not installed
Dart plugins not installed
Following is the image of the error:
I also tried uninstalling the flutter and dart plugins and re install them, but still getting the same error.
Can someone help me with this please?
If you are using android studio 4.1, then it's likely bug of the Android Studio or the flutter itself (you can read this github issue) as the plugins path may be changed in android studio 4.1.
For a temporary solution, you can use flutter dev channel that contains a fix for the issue.
flutter channel dev
flutter upgrade
And try to run flutter doctor again.
flutter doctor
If you do nothing, it's okay as long as you have installed the plugin. You can create project and working on it as usual (see this issue).
It's a bug in either android studio or flutter.
You can ignore it because everything still works as usual.
I formatted my computer and installed windows 10 again because I wanted to play and Linux was having problems.
I am trying to install flutter and dart for application development, but he is accusing this error.
Flutter doctor
I tested it before changing the flutter to beta and it recognized the flutter and dart plugins, however I want to leave it in the stable channel.
However, my code doesn't recognize it, I believe it is because of these errors with the flutter and dart plugins.
Code
I already installed the plugins through android studio and also vscode.
I tried to uninstall and install again, restart the computer, set path ...
I managed to solve it, I will leave here the solution for those who had the same problem as me.
I changed the channel to the Master and ran a flutter upgrade.
Now everything is running smoothly.
Maybe some bug with the stable channel, I can't say.
So:
Flutter channel master
Flutter upgrade
VOILĂ
Flutter doctor
Did you install flutter plugin in android studio properly? (Recheck in android studio.)
if yes then remove it and reinstall it.
if (1) not working then update your android studio.
keep your flutter sdk in c drive
if still flutter cannot trace plugin then set flutter sdk and dart sdk manually in android studio.
for dart
for flutter
So I am tryin to download flutter on android studio. I downloaded the plugin for it and it shows up on android studio when I look for it but when I run
flutter doctor
it says
[!] Android Studio (version 4.1.0)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
I don't know what the problem is because I have the plugin installed on android studio but flutter can't find it. How can I fix this issue?
It's a known bug that u can ignore and it doesn't affect you as long as u have the plugins installed. For more info check This issue
The error will disappear just after running it once. Try running it.
Try this,
check your Dart SDK path correctly, after this apply.
may this helpful for you.
When i am running flutter doctor command then I'm getting the error "flutter and dart plugin not installed". But in my plugin section these two plugins are installed. I am attaching screenshot for the both.
It looks like you are trying to run flutter using IntelliJ, with Android studio already being there on your machine. It happened with me that when I tried running flutter from IntelliJ with the plugins installed, it gave me the same error and it was resolved by installing those plugins in Android Studio.
Try installing the plugins in Android Studio. Then run it again.
Go to preferences and click plugin then update flutter and dart
After installing flutter, when I run
I think I have messed up my Mac regarding Android Studio when I run
Flutter doctor reports it says Android Studio not found like below
Android Studio not found at /Applications/Contents
Flutter doctor -v
What should I do?
Please run flutter config --android-studio-dir=/Applications/Android\ Studio.app
As #Akshay says run flutter config --android-studio-dir=/Application/Android\ Studio.app. I got the same problem when i ran the config command this way: flutter config --android-studio-dir=/Application/
I believe that when you install Android Studio with JetBrains toolbox, the pwd is different, mine was at "Applications/JetBrains\ Toolbox/Android\ Studio.app/Contents"
So, to solve it:
flutter config --android-studio-dir=/Users/<$YOUR_USER>/Applications/JetBrains\ Toolbox/Android\ Studio.app/Contents