android-sdk 使用命令行创建虚拟设备让flutter 运行

我想在中 VSCode 运行 Flutter 项目的安卓应用需要虚拟设备

但是我没有安装Android Studio 也不想安这个大东西

而是通过 Scoop 安装的 android-sdk

所以需要通过命令行来创建虚拟设备让 flutter 运行

也不知道 avdmanager list中 选那些更为稳妥

...
---------
id: 5 or "Galaxy Nexus"
    Name: Galaxy Nexus
    OEM : Google
---------
id: 6 or "Nexus 10"
    Name: Nexus 10
    OEM : Google
---------
id: 7 or "Nexus 4"
    Name: Nexus 4
    OEM : Google
---------
id: 8 or "Nexus 5"
    Name: Nexus 5
    OEM : Google
---------
id: 9 or "Nexus 5X"
    Name: Nexus 5X
    OEM : Google
---------
id: 10 or "Nexus 6"
    Name: Nexus 6
    OEM : Google
---------
id: 11 or "Nexus 6P"
    Name: Nexus 6P
    OEM : Google
---------
id: 12 or "Nexus 7 2013"
    Name: Nexus 7
    OEM : Google
---------
id: 13 or "Nexus 7"
    Name: Nexus 7 (2012)
    OEM : Google
---------
id: 14 or "Nexus 9"
    Name: Nexus 9
    OEM : Google
---------
id: 15 or "Nexus One"
    Name: Nexus One
    OEM : Google
---------
id: 16 or "Nexus S"
    Name: Nexus S
    OEM : Google
---------
id: 17 or "pixel"
    Name: Pixel
    OEM : Google
---------
...

下面是 avdmanager list avd的输出

Available Android Virtual Devices:


sdkmanager --list

  Path                 | Version | Description                       | Location
  -------              | ------- | -------                           | -------
  build-tools;31.0.0   | 31.0.0  | Android SDK Build-Tools 31        | build-tools\31.0.0\
  platform-tools       | 31.0.3  | Android SDK Platform-Tools 31.0.3 | platform-tools\
  platforms;android-31 | 1       | Android SDK Platform 31           | platforms\android-31\
  tools                | 26.1.1  | Android SDK Tools 26.1.1          | tools\
阅读 883
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题