简体   繁体   English

当我想新建一个flutter项目时,flutter只是回到了欢迎界面

[英]When I want to create a new flutter project, flutter just returns to the welcome screen

I have already installed Flutter and Dart plugins in Android Studio.我已经在 Android Studio 中安装了 Flutter 和 Dart 插件。 I go through all the stages of creating a Flutter project but when I click on Finish I get the dialog "creating a new flutter project" but after a few seconds the welcome screen keeps showing up and I'm back at square one.我经历了创建 Flutter 项目的所有阶段,但是当我单击“完成”时,我会看到“创建新的 Flutter 项目”对话框,但几秒钟后欢迎屏幕不断出现,我又回到了第一个阶段。 Can anyone help, please?请问有人可以帮忙吗?

Here's the information of "flutter doctor -v" command:下面是“flutter doctor -v”命令的信息:

CreateProcessW failed 87
[!] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18362.418], locale en-US)
    • Flutter version 1.12.13+hotfix.8 at C:\src\flutter
    • Framework revision 0b8abb4724 (4 weeks ago), 2020-02-11 11:44:36 -0800
    • Engine revision e1e6ced81d
    • Dart version 2.7.0
    X Downloaded executables cannot execute on host.
      See https://github.com/flutter/flutter/issues/6207 for more information


[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/setup/#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
      You may also want to add it to your PATH environment variable.


[√] Android Studio (version 3.6)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

It seems that you have a problem with Flutter installation.看来你的 Flutter 安装有问题。 You can try to reinstall it (make sure you get version for your OS).您可以尝试重新安装它(确保您获得了适用于您的操作系统的版本)。 The second problem is with Android SDK.第二个问题是Android SDK。 Installing Android Studio is not enough.安装 Android Studio 是不够的。 Try going through this setup instructions: https://flutter.dev/docs/get-started/install#android-setup .尝试完成此设置说明: https : //flutter.dev/docs/get-started/install#android-setup

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM