我想用Android Studio创建一个示例Flutter项目,但是问题是,尽管我在Android Studio 3.2.1中安装了Flutter和Flutter语言插件,但在“文件”>“新建”中缺少菜单。 我还下载了Flutter SDK并配置了环境变量。以下是我扑扑的医生结果:
- Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 6.1.7601], locale en-US)
. Flutter version 1.0.0 at C:\flutter
. Framework revision 5391447fae (7 weeks ago), 2018-11-29 19:41:26 -0800
. Engine revision 7375a0f414
. Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
- Android toolchain - develop for Android devices (Android SDK 28.0.3)
. Android SDK at C:\sdk
. Android NDK location not configured (optional; useful for native profiling support)
. Platform android-28, build-tools 28.0.3
. ANDROID_HOME = C:\sdk
. Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
. Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
. All Android licenses accepted.
- Android Studio (version 2.3)
. Android Studio at C:\Program Files\Android\Android Studio v2
. Flutter plugin version 12.1 - the recommended minimum version is 16.0.0
. Dart plugin version 162.2924
. Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
- Android Studio (version 3.2)
. Android Studio at C:\Program Files\Android\Android Studio
. Flutter plugin version 31.3.1
. Dart plugin version 181.5656
. Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
+ IntelliJ IDEA Community Edition (version 15)
. IntelliJ at C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 15.0.6
. Flutter plugin not installed; this adds Flutter specific functionality.
. Dart plugin not installed; this adds Dart specific functionality.
. For information about installing plugins, see
. https://flutter.io/intellij-setup/#installing-the-plugins
. This install is older than the minimum recommended version of 2017.1.0.
-IntelliJ IDEA Ultimate Edition (version 2018.3)
. IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.2
. Flutter plugin version 31.3.4
. Dart plugin version 183.4886.3
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
答案 0 :(得分:1)
我遇到了同样的问题(在装有Catalina的Mac上为Android Studio 3.5)。
在Android Studio中>转到“偏好设置”>“插件”,您将看到两个插件(飞镖和颤动)均被禁用。
单击“更新”,“启用”,然后单击建议的“重新启动IDE”。
对我有用。
答案 1 :(得分:0)
我的flutter doctor
结果与您的结果几乎相同,只有一个不同。
我没有安装两个版本的Android Studio,也没有安装这个版本的- Android Studio (version 2.3)
。
答案 2 :(得分:0)
尝试启用插件Android APK Support
和Android NDK Support
。
答案 3 :(得分:0)
更新Android Studio为我解决了这个问题。