Flutter——首次在安卓机上运行

时间:2021-06-02 14:33:32   收藏:0   阅读:0

第一次在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"
            ]
        },
    ]
}

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!