I'm trying to install Flutter on my mbp. I'm getting an error wit the VS code version, as I believe in Android studio. I've also installed VS code, the program, this is the latest version. In studio, I think I also have the latest version. When I enter 'flutter doctor', I'm getting the next list:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.6 17G65, locale nl-NL)
[✓] Android toolchain - develop for Android devices (Android SDK 25.0.2)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[✓] Android Studio (version 3.1)
[!] VS Code (version 1.16.1)
[✓] Connected devices (1 available)
Does anyone have a clue how to solve this?
This was a bug in Flutter. Our detection of extensions was case-sensitive and a VS Code update changed the casing in the extensions folder. It didn't affect any functionality, only the mis-reporting of the extension.
I fixed the bug a while back, and it was included in the most recent beta channel update, so if you run flutter upgrade this should no longer occur. Sorry for the confusion!
Related
In VSCode and trying to run the following:
dart pub upgrade
I get the following error:
Error: Error when reading 'pub': No such file or directory
However, my flutter file seems fine. Flutter Doctor output below:
[✓] Flutter (Channel stable, 3.3.4, on macOS 12.6 21G115 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.72.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
Any idea how I can resolve this? Thanks!
first clean dart using dart pub cache clean
then run dart pub get
After that run dart pub get upgrade
try creating a .bashrc file in your user's folder.
Then add the following:
PATH=$PATH:/path/to/dart/installation/bin/folder
export PATH
This can happen when you have installed Dart-sdk two times. One time as a windows installer, and the other through chocolatey for instance. Uninstall the one you have in "Add/Remove programs", or at least make sure you only have one, and it should work.
Flutter doctor showing issues at IntelliJ Idea. How can I fix this issue?
I had the same problem. In my specific case I simply:
Downgraded to version 2021.2.4
Cleared the download cash.
Restarted my machine
At this point, Flutter Doctor was no longer returning an error. (But I was in the old version of IntelliJ IDEA).
Then I reinstalled the new version 2021.3.
Cleared the download cash.
Updated all plugins, invalidate caches and restart.
Upgrade Flutter to 2.8.1.
Restarted my machine.
Now I have no more errors.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-arm, locale fr-BE)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.3)
[✓] VS Code (version 1.63.2)
[✓] Connected device (2 available)
! Doctor found issues in 1 category.
There are few step to follow that may help you
Close the editor
Go to console
Set the path of your Editor to flutter directory by using this command
flutter config --android-studio-dir="Path of your code editor"
make sure that you have double quotes around the path.
I am trying to migrate my Flutter/Dart project to use null safety. I have updated all of my dependencies and changed the sdk to use ">=2.12.0 <3.0.0". However, when I try to use the migration tool I get the following error:
When I look at my flutter and dart versions everything seems fine. I may be looking at it wrong, but below is the output from flutter doctor and brew info dart:
% flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.6, on macOS 11.4 20F71 darwin-x64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --
android-licenses
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.57.0)
[✓] Connected device (2 available)
! Doctor found issues in 1 category.
% brew info dart
dart-lang/dart/dart: stable 2.12.4, HEAD
The Dart SDK
https://dart.dev
Conflicts with:
dart-beta (because dart-beta ships the same binaries)
/usr/local/Cellar/dart/2.9.3 (509 files, 523.7MB) *
Built from source on 2020-09-14 at 16:52:16
From: https://github.com/dart-lang/homebrew-dart/blob/HEAD/dart.rb
==> Options
--HEAD
Install HEAD version
==> Caveats
Please note the path to the Dart SDK:
/usr/local/opt/dart/libexec
I'm suspecting that maybe I don't have the latest dart sdk like I believe I do. If that's the case then how do I upgrade without breaking anything?
UPDATE:
It appears I am using the latest version of dart. Going into the settings in Android Studio I can see it is pointing at the dart sdk that ships with flutter:
Have you run "flutter upgrade" in your terminal?
I've recently updated Flutter to 1.25.0-8.1.pre in beta. I could run debug apk and build release. But, the release-apk doesn't work and it stuck on default splash screen. Where the problem lies in. Is there any such bug from Flutter?
flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.25.0-8.1.pre, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Chrome - develop for the web
[✓] Android Studio
[✓] IntelliJ IDEA Community Edition (version 2020.3)
[✓] VS Code (version 1.52.1)
[✓] Connected device (3 available)
• No issues found!
I just downgrade the flutter version to 1.24.0-10.2.pre which released on 11/19/2020 and retried building release apk. And it worked fine. Actually the problem lies with Flutter new update on beta. The corresponding issue : https://github.com/flutter/flutter/issues/72705
My Flutter App is not compiling because of this error:
Couldn't read file Instance of 'ErrorHandlingFile' even though it
exists. Please verify that this file has read permission and try again
I tired switching channels and changing versions but nothing has worked yet.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.13.6, on Mac OS X 10.15.1 19B88, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[!] Android Studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
✗ Android Studio not found at /Applications/Android/Contents
[!] IntelliJ IDEA Community Edition (version 2019.2.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.36.1)
[✓] Connected device (3 available)
! Doctor found issues in 2 categories.
Any Ideas?
Had the same problem after upgrade to beta channel.
Found that this error message just a top of an iceberg, real problem is in one of your plugins.
Read the discussion in this issue to manually debug your application or wait for fix which will result in an appropriate error message.
If you are lucky - simple flutter pub upgrade will solve the issue for your project.
If not, as a hot-fix you can downgrade your flutter version.