首页 > 解决方案 > 找不到 androidx 命令

问题描述

我想创建一个通过命令启用 androidx 的颤振项目。但我创立了这个。我升级颤振但不工作

$ 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.

标签: flutterandroidx

解决方案


要创建一个新项目运行:

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

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


推荐阅读