flutter命令行直接指定设备

> flutter driver

Found 3 connected devices:

sdk gphone16k x86 64 (mobile) • emulator-5554 • android-x64    • Android 15 (API 35) (emulator)
  Linux (desktop)               • linux         • linux-x64      • Ubuntu 22.04.5 LTS 6.8.0-49-generic
  Chrome (web)                  • chrome        • web-javascript • Google Chrome 131.0.6778.108

第二列就是对应可以run的名称

> flutter run -d emulator-5554

参数

-d, --device-id             Target device id or name (prefixes allowed).
    --version               Reports the version of this tool.
    --enable-analytics      Enable telemetry reporting each time a flutter or dart command runs.
    --disable-analytics     Disable telemetry reporting each time a flutter or dart command runs, until it is re-enabled.
    --suppress-analytics    Suppress analytics reporting for the current CLI invocation.

Could not find method implementation() for arguments [androidx.lifecycle:lifecycle-extensions:2.7.0] on root project 'android' of type org.gradle.api.Project.

可能是你模拟器没有起来

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值