无法从现有项目中创建桌面应用程序支持
Unable to create desktop application support from existing project in flutter
我正在从现有应用程序创建桌面应用程序。
文档中给出的命令是:
flutter create .
运行 在项目目录的根目录中执行此命令我收到此错误
"MyApp" is not a valid Dart package name.
注意:MyApp 是我的项目名称
Flutter 只允许使用小写字母的项目名称,并且可以包含下划线或数字。这实际上是 dart 包的约定。还要检查 here for the prescribed convention. It is likely that your folder name is used by flutter as its project name. You can try to overcome this by changing the folder name. But please do keep a backup before doing flutter create
on an existing project. For more details on possible options check this 。
我正在从现有应用程序创建桌面应用程序。 文档中给出的命令是:
flutter create .
运行 在项目目录的根目录中执行此命令我收到此错误
"MyApp" is not a valid Dart package name.
注意:MyApp 是我的项目名称
Flutter 只允许使用小写字母的项目名称,并且可以包含下划线或数字。这实际上是 dart 包的约定。还要检查 here for the prescribed convention. It is likely that your folder name is used by flutter as its project name. You can try to overcome this by changing the folder name. But please do keep a backup before doing flutter create
on an existing project. For more details on possible options check this