After upgrading my flutter, when i try to create a new flutter project it get stuck showing creating flutter project for hours without any change And when i run flutter doctor -v, i have no issues.
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\USER\Documents\Sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = C:\Users\USER\Documents\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.60.0)
• VS Code at C:\Users\USER\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.23.0
[√] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.107
• No issues found!
Try these following(one by one):
Reinstall Flutter plugin.
Reinstall flutter SDK.
Related
I realize that this is a duplicate of this question, but that question does not seem to have any activity so I'm trying to get more attention to this issue.
I am trying to use the percent icon from Material icons, although in the fonts.google.com site,it shows flutter implementation (screenshot attached below), when I try to call it from flutter code I get the error The getter 'percent' isn't defined for the type 'Icons'. (screenshot attached below).
what is the reason for this, and why is google trying to show some icon is supported for flutter when it clearly is not?
here is my flutter doctor -v output:
[√] Flutter (Channel stable, 2.8.0, on Microsoft Windows [Version 10.0.19041.1348], locale en-US)
• Flutter version 2.8.0 at C:\Users\adnan\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision cf44000065 (23 hours ago), 2021-12-08 14:06:50 -0800
• Engine revision 40a99c5951
• Dart version 2.15.0
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\adnan\AppData\Local\Android\sdk
• Platform android-31, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 2020.3)
• Android Studio at C:\Program Files\Android\Android Studio1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[!] Android Studio (version 4.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
X Unable to determine bundled Java version.
• Try updating or re-installing Android Studio.
[√] VS Code (version 1.62.3)
• VS Code at C:\Users\adnan\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.29.0
[√] VS Code (version 1.61.0-insider)
• VS Code at C:\Users\adnan\AppData\Local\Programs\Microsoft VS Code Insiders
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (3 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.45
• Edge (web) • edge • web-javascript • Microsoft Edge 96.0.1054.43
! Doctor found issues in 1 category.
Apparently, now with Flutter 2.10, they've added some icons.
Last but not least, we’ve added 1,028 new Material icons.
which kinda answers this question, so the clear answer is whenever we encounter such an issue, we have to just sit and wait for flutter to integrate those icons, or use another Icons package.
i keep getting this error after running flutter doctor --android-licenses i installed all sdk tools also i ran the flutter clean and flutter build
and i added the sdk platforms path to env variables
here's my flutter doctor --android-licenses output:
Error: Could not find or load main class USERNAME\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\\..
and here's my flutter doctor -v output :
[√] Flutter (Channel master, 2.3.0-17.0.pre.47, on Microsoft Windows [Version
10.0.19041.985], locale en-CA)
• Flutter version 2.3.0-17.0.pre.47 at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision fdb1fb184d (6 days ago), 2021-05-24 22:04:02 -0700
• Engine revision b1385c0df1
• Dart version 2.14.0 (build 2.14.0-145.0.dev)
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc4)
• Android SDK at C:\Users\USERNAME\AppData\Local\Android\Sdk
• Platform android-30, build-tools 31.0.0-rc4
• ANDROID_HOME = C:\Users\houda bouhsiss\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more
details.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.2.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
[√] Connected device (2 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.212
• Edge (web) • edge • web-javascript • Microsoft Edge 90.0.818.66
! Doctor found issues in 1 category.
I fixed it with reinstalling/installing the Android SDK Command-line Tools
More Informations:
https://stackoverflow.com/a/67720572/14058016
Initially this code is correct but after I reinstalled Windows and its applications, the project that was correct is now an error.
My project error
flutter doctor -v :
[√] Flutter (Channel dev, 1.26.0-1.0.pre, on Microsoft Windows [Version 10.0.19042.804], locale en-US)
• Flutter version 1.26.0-1.0.pre at F:\src\flutter
• Framework revision 63062a6443 (9 weeks ago), 2020-12-13 23:19:13 +0800
• Engine revision 4797b06652
• Dart version 2.12.0 (build 2.12.0-141.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at F:\src\Android\Sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.53.2)
• VS Code at C:\Users\hyda\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.19.0
[√] Connected device (1 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• No issues found!
The error you get is because the libraries are not loaded. First, go to the pubseck.yaml file and get the packages there. If still not working see this command
-> flutter clean
-> flutter pub get
Such problems can be solved by running this command:
flutter clean
Once that is done, go to pubspec.yaml and check if all the packages are still there. For cross-checking, run:
flutter pub get
This will solve your problem.
When I hot reload my flutter application, it always reloads 0 out of n number of libraries (Even if I make changes).
I am using Flutter on Intellij. Everything was working fine and now it doesn't work anymore.
Flutter Doctor
[√] Flutter (Channel beta, v1.17.0, on Microsoft Windows [Version
10.0.18362.720], locale en-US)
• Flutter version 1.17.0 at C:\Users\msoha\Desktop\Flutter\flutter
• Framework revision d3ed9ec945 (7 days ago), 2020-04-06 14:07:34 -0700
• Engine revision c9506cb8e9
• Dart version 2.8.0 (build 2.8.0-dev.18.0 eea9717938)
[√] Android toolchain - develop for Android devices (Android SDK
version 29.0.0)
• Android SDK at C:\Users\msoha\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 3.4)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 36.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[√] IntelliJ IDEA Community Edition (version 2019.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.3
• Flutter plugin version 44.0.3
• Dart plugin version 193.6911.31
[√] VS Code (version 1.38.1)
• VS Code at C:\Users\msoha\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.4.1
[√] Connected device (3 available)
• SM S367VL • 5200e8cccc8f76a3 • android-arm • Android 9 (API 28)
• Chrome • chrome • web-javascript • Google Chrome 80.0.3987.163
• Web Server • web-server • web-javascript • Flutter Tools
• No issues found! Process finished with exit code 0
For reference, I am building on an android phone.
I used flutter run -d chrome to run the app, but dart's print doesn't work properly with VS Code in windows. I looked for solutions from another issue, but the problem still exists.
But, it will work fine on android debug.
$ flutter doctor -v
[√] Flutter (Channel master, v1.13.6-pre.25, on Microsoft Windows [Version 10.0.18363.535], locale zh-CN)
• Flutter version 1.13.6-pre.25 at D:\flutter_sdk
• Framework revision b7af5e714d (6 hours ago), 2019-12-25 23:49:55 -0800
• Engine revision 33813929e3
• Dart version 2.8.0 (build 2.8.0-dev.0.0 886615d0f9)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at D:\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 28.0.3
• ANDROID_HOME = D:\Sdk
• ANDROID_SDK_ROOT = D:\Sdk\
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Users\jeff\AppData\Local\Google\Chrome\Application\chrome.exe
[!] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] Connected device (2 available)
• Chrome • chrome • web-javascript • Google Chrome 78.0.3904.87
• Web Server • web-server • web-javascript • Flutter Tools
! Doctor found issues in 1 category.```
desc:#47820
Check whether something accidently typed on filter box of DEBUG CONSOLE in VS Code. A single letter can block entire print outputs.
(know this is an old question, but hope somebody will benifit from it someday)