找不到androidx命令

时间:2020-11-09 04:20:58

标签: flutter androidx

我想用命令启用androidx创建一个flutter项目。 但是我建立了这个我升级了颤振但无法正常工作

$ flutter create --androidx hello_world
Could not find an option named "androidx".

Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.

1 个答案:

答案 0 :(得分:0)

要创建新项目,请运行:

flutter create -t <project-type> <new-project-path>

参考: https://flutter.dev/docs/development/androidx-migration