Flutter创建命令失败错误 [英] Flutter create command was unsuccessful error
问题描述
我正在Android studio
中创建一个新的flutter
项目.我给该项目起一个名字,然后选择Flutter
应用程序.然后,我单击完成,然后注意到发生了.
Android Studio表示
I'm creating a new flutter
project in Android studio
. I give the project a name and choose Flutter
application. I then clicked finish and then noting happened.
Android studio says that
"Flutter create command was unsuccessful"
当我使用文件资源管理器导航到命令目录时,将使用给定的项目名称创建一个新文件夹,但该文件夹为空.
When I navigate to command directory using file explorer, I new folder is created with the project name I've given but it is empty.
请帮助.
推荐答案
我已经解决了这个问题.
运行flutter doctor --android-licenses
之后,我知道需要更新我的sdkManager
.
I've solution to this problem now.
After running flutter doctor --android-licenses
I got to know that I need to update my sdkManager
.
然后我使用
cd C:\Users\[user-name]\AppData\Local\Android\Sdk\tools\bin
并运行sdkmanager --update
然后我重新启动Android Studio
并尝试创建flutter项目.
Then I restarted the Android Studio
and tried creating flutter project.
有效.
这篇关于Flutter创建命令失败错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!