使用Android Studio创建新的Flutter项目时出现问题

问题描述 投票:0回答:2

我想用Android Studio创建一个示例Flutter项目,但问题是虽然我在Android Studio 3.2.1中安装了Flutter和Flutter语言插件,但File> New中缺少菜单。我还下载了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.
android android-studio plugins flutter project
2个回答
0
投票

我的flutter doctor结果几乎和你的一样,只有一个区别。

我没有安装两个版本的Android Studio,我没有安装这个- Android Studio (version 2.3)


0
投票

尝试启用插件Android APK SupportAndroid NDK Support

© www.soinside.com 2019 - 2024. All rights reserved.