簡體   English   中英

當我想新建一個flutter項目時,flutter只是回到了歡迎界面

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

我已經在 Android Studio 中安裝了 Flutter 和 Dart 插件。 我經歷了創建 Flutter 項目的所有階段,但是當我單擊“完成”時,我會看到“創建新的 Flutter 項目”對話框,但幾秒鍾后歡迎屏幕不斷出現,我又回到了第一個階段。 請問有人可以幫忙嗎?

下面是“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.

看來你的 Flutter 安裝有問題。 您可以嘗試重新安裝它(確保您獲得了適用於您的操作系統的版本)。 第二個問題是Android SDK。 安裝 Android Studio 是不夠的。 嘗試完成此設置說明: https : //flutter.dev/docs/get-started/install#android-setup

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM