想在mac跑一下flutter 的项目。报一个错误 。
我刚搭建的环境
一看开api23我就以为是sdk的23的版本没有安装
就安装了一下这个插件 。可是重启之后还是报错。
后来才发现是我自己同时插入了两个设备的原因。
macdeMac-mini:plife mac$ flutter run
More than one device connected; please specify a device with the '-d <deviceId>' flag, or use '-d all'
to act on all devices.
OPPO R9s • b296aa09 • android-arm64 • Android 6.0.1 (API 23)
Jesuslove • 549f31d81511a6751e420570bf55851a44dc20e0 • ios • iOS 12.0
解决办法 flutter attach -d 加上设备的id 即可