如何修复 Flutter doctor android studio plugin(Dart , Flutter) 问题?
How to fix Flutter doctor android studio plugin(Dart , Flutter) issue?
我安装了最新版的AndroidStudio(4.1.1),最新版的Flutter(Flutter 1.22.4 • channel stable)。我在 Android Studio 中安装了 Dart & Flutter 插件。但是flutter doctor给出插件未安装的问题
这里是flutter doctor命令结果:
[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.16299.19], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] 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.
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
我设置了 android 工作室配置路径
flutter config --android-studio dir="C:\Program Files\Android\Android Studio"
但是结果是一样的
flutter upgrade
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
flutter doctor -v
然后,如果问题仍然存在,则只需切换到 Beta 通道,升级 flutter 即可解决。
flutter channel stable
flutter upgrade
运行 在终端中执行上述命令。
(Android toolchain)问题:你需要安装android studio,如果已经安装,你需要重启你的系统,然后运行在命令提示符下
flutter doctor --android-licenses
并且您需要接受所有条款和条件。
(Android Studio) 问题:您需要设置以下内容:
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio\"
我安装了最新版的AndroidStudio(4.1.1),最新版的Flutter(Flutter 1.22.4 • channel stable)。我在 Android Studio 中安装了 Dart & Flutter 插件。但是flutter doctor给出插件未安装的问题
这里是flutter doctor命令结果:
[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.16299.19], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] 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.
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
我设置了 android 工作室配置路径
flutter config --android-studio dir="C:\Program Files\Android\Android Studio"
但是结果是一样的
flutter upgrade
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
flutter doctor -v
然后,如果问题仍然存在,则只需切换到 Beta 通道,升级 flutter 即可解决。
flutter channel stable
flutter upgrade
运行 在终端中执行上述命令。
(Android toolchain)问题:你需要安装android studio,如果已经安装,你需要重启你的系统,然后运行在命令提示符下
flutter doctor --android-licenses
并且您需要接受所有条款和条件。
(Android Studio) 问题:您需要设置以下内容:
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio\"