Flutter——首次在安卓机上运行
第一次在ASCode上用安卓机测试Flutter项目,直接运行,会报很多错误,需要在项目中新增配置
环境:安卓机
开发工具:ASCode
.vscode -> launch.json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "blabla-app", "request": "launch", "type": "dart" }, { "name": "vivo debug", "request": "launch", "type": "dart", "flutterMode": "debug", // NOTE: debug 时 // android ? 使用下面的 args // iOS? 注释掉下面的 args "args": [ "--flavor", "none" ] }, ] }