flutter doctor showing errors
When I run flutter doctor after installing flutter it's showing the following errors, How to fix them?
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.7, on Mac OS X 10.14.6 18G103, locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[!] Android Studio (version 3.4)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] IntelliJ IDEA Community Edition (version 2019.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.41.1)
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)
! Doctor found issues in 4 categories.
2 Answers
5 years ago by Eleven
1. Fixing Some Android licenses not accepted
run the following command and say yes to the licence agreement messages you are going to get
flutter doctor --android-licenses
2. Android Studio Issues
Go ahead and install the Flutter plugin
and Dart plugin
in Android Studio that should resolve the issue
Note: If you are using the Android Studio you can ignore the other IDE errors.
5 years ago by Karthik Divi