简体   繁体   English

新的 Flutter 项目向导未在 Android Studio 4.0.1 上显示

[英]New Flutter Project wizard not showing on Android Studio 4.0.1

Since the Android Studio 4 got released, the startup dialog is missing the option to create a new flutter project.自 Android Studio 4 发布以来,启动对话框缺少创建新 flutter 项目的选项。 I've tried all of the solutions mentioned here我已经尝试了这里提到的所有解决方案

New Flutter Project wizard not showing on Android Studio 3.0.1 新的 Flutter 项目向导未在 Android Studio 3.0.1 上显示

But still no luck?但还是没有运气? What to do.该怎么办。 Does anybody has this even working with AS 4.0?1??有人甚至可以使用 AS 4.0?1 吗?

在此处输入图像描述

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.20.0-7.2.pre, on Microsoft Windows [Version 10.0.19041.388], locale en-US)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.47.3)
[✓] Connected device (3 available)

• No issues found!

Okay,好的,

finally fixed this by removing .AndroidStudio4.0 config folder from my user directory.最后通过从我的用户目录中删除.AndroidStudio4.0配置文件夹来解决这个问题。

It simply created a new .AndroidStudio4.0 folder along with the next launch of Android Studio, installed dart and flutter plugins and I'm good to go. It simply created a new .AndroidStudio4.0 folder along with the next launch of Android Studio, installed dart and flutter plugins and I'm good to go.

 - close Android Studio if it's running.
 - delete or rename the `.AndroidStudio4.0` config folder in user directory.
 - launch Android Studio, and walk through a new configuration 
 - install `dart` and `flutter` plugins and restart IDE

Now you should probably see the option in launch wizard.现在您可能应该在启动向导中看到该选项。

update: In new version of Android Studio(from ~4.1), they have moved the location of config folder. You can find it here: C:\Users\%userfolder%\AppData\Roaming\Google\AndroidStudio4.1更新: In new version of Android Studio(from ~4.1), they have moved the location of config folder. You can find it here: C:\Users\%userfolder%\AppData\Roaming\Google\AndroidStudio4.1 In new version of Android Studio(from ~4.1), they have moved the location of config folder. You can find it here: C:\Users\%userfolder%\AppData\Roaming\Google\AndroidStudio4.1

在此处输入图像描述

Delete the AndoidStudio4.0 config folder in user directory.删除用户目录下的 AndoidStudio4.0 config 文件夹。 Launch android studio Do all the required configuration settings Install Flutter and Dart Restart your IDE启动 android studio 进行所有必需的配置设置 安装 Flutter 和 Dart 重新启动 Z581D6381F3F35E4F36D772

All should be well一切都应该很好

For me, I had just installed Flutter and Dart plugin.对我来说,我刚刚安装了 Flutter 和 Dart 插件。 I did not had AndroidStudio4.0 folder.我没有 AndroidStudio4.0 文件夹。 My Android Studio version: 4.1我的 Android Studio 版本:4.1

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

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