[英]Everything is install but in Android Studio Flutter and Dart Error
I installed everything but when I run flutter doctor then this error occurs.我安装了所有东西,但是当我运行 flutter doctor 时,会发生此错误。
Doctor summary (to see all details, run flutter doctor -v):医生摘要(要查看所有详细信息,请运行 flutter 医生 -v):
[✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
[✓] Android Studio (version 3.1)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] Connected devices
! No devices available
. . Doctor found issues in 2 categories.
医生发现了两类问题。
you can ignore those errors if you are going to use vscode as your IDE.如果你打算使用 vscode 作为你的 IDE,你可以忽略这些错误。
The answer to this error is:这个错误的答案是:
flutter channel dev
flutter upgrade
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
flutter doctor -v
when I run these 4 commands then this error will automatically solve.当我运行这 4 个命令时,此错误将自动解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.