张国伟 发表于 2024-12-16 18:29:32

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 on root project 'android' of type org.gradle.api.Project.

大概是你模拟器没有起来

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: flutter下令行直接指定装备