“Flutter create”命令不支持Android和iOS

jvlzgdj9  于 2023-06-07  发布在  Flutter
关注(0)|答案(1)|浏览(223)

伙计们
当我想用flutter create --org com.example.myapp myapp命令创建新的Flutter项目时,它只创建web文件夹,而不是androidios文件夹。我还尝试从Android Studio创建一个Flutter项目,但它也只创建了web文件夹。我不知道为什么
当我尝试使用flutter create --platforms=android,ios .命令在项目文件夹中添加对Android和iOS的支持时,我收到以下消息:

Recreating project ....
Resolving dependencies... 
Got dependencies.
Wrote 0 files.

All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your application, type:

  $ cd .
  $ flutter run

Your application code is in ./lib/main.dart.

但没有附加的支撑。
flutter doctor没有返回任何可疑信息:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.2, on macOS 13.3.1 22E772610a darwin-x64, locale en-GB)
[✓] Chrome - develop for the web
[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
[✓] VS Code (version 1.78.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

这能有什么问题

3zwtqj6y

3zwtqj6y1#

我是这样解决的:

flutter config --enable-android --enable-ios

相关问题