美文网首页
Mac下通过IDEA运行flutter项目,报:Executio

Mac下通过IDEA运行flutter项目,报:Executio

作者: iOS_我更专业 | 来源:发表于2020-04-06 10:57 被阅读0次

    先说下问题Log:

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ':app:compileFlutterBuildDebug'.

    > A problem occurred starting process 'command '/Users/***/flutter/bin/flutter''

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 7s

    Exception: Gradle task assembleDebug failed with exit code 1

    楼主在IDEA上运行Flutter项目,iOS没有问题,但在夜神Nox上Run,通过IDEA进行Build时,总是报错。通过梯子找到了几个解决办法:

    1、解决办法

    2、解决办法

    ...

    但是好像并不管用,于是,我通过命令行进行操作:

    flutter clean

    flutter run

    就这样通过命令行将项目Run起来了。但是为什么通过IDE Run不起来,这一点我也查了资料,有些大神说是项目中Api过期,导致IDE不给过,在命令行中会有详细的log输出,同时也能Run起来项目。如果大家知道这是怎么回事,请留言告知,大家一起学习~

    相关文章

      网友评论

          本文标题:Mac下通过IDEA运行flutter项目,报:Executio

          本文链接:https://www.haomeiwen.com/subject/qguvphtx.html