flutter - 找不到 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.
解决方案
要创建一个新项目运行:
flutter create -t <project-type> <new-project-path>
参考: https ://flutter.dev/docs/development/androidx-migration
推荐阅读
- java - 如何检测 Android 中的上传/下载传输速率?
- java - 我们可以单击使用 java 和 selenium webdriver 与某些图像/按钮重叠的按钮吗?
- kotlin - Kotlin 有没有办法展平地图
列出 - java - 我认为对 CLASSPATH 感到困惑
- c - 从文件中读取每个字符
- c# - MVC Core试图通过选择第一列来填充表格行
- java - 如何在 Spring Boot 中使用来自 spring-security.xml 的配置?
- typescript - 为什么我的 getter/setter 没有在 TypeScript 中编译?
- unicode - 特殊字符显示为表情符号
- java - 使用 FreeMarker 从选择返回值