首页 > 解决方案 > 任务 ':app:compileFlutterBuildDebug' 执行失败。完成flutter clean,gradle clean,pub get,重新启动,仍然是同样的问题

问题描述

        FAILURE: Build failed with an exception.                                
                                                                            
    * Where:                                                                
    Script '/Users/username/Documents/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1035
                                                                            
    * What went wrong:                                                      
    Execution failed for task ':app:compileFlutterBuildDebug'.              
    > Process 'command '/Users/username

标题

/Documents/flutter/bin/flutter'' 以非零退出值 1 结束

    * 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                              
                                                     

我试过 Flutter clean、Gradle clean、flutter pub get,还是同样的问题。 Flutter 版本是 1.22 Channel - Stable。

Please if anyone could help!

标签: androidfluttergradle

解决方案


推荐阅读