问题描述
我使用了本指南https://medium.com/@levelfivecoder/how-to-build-sign-and-distribute-your-flutter-android-application-using-azure-devops-and-appcenter-965382b85b8b在azure devops服务器上制作了一个构建脚本。
经过几次成功的构建后,我得到了下一个错误:
##[error]Error: The process '/Users/runner/hostedtoolcache/Flutter/1.20.1-stable/macos/flutter/bin/flutter' failed with exit code 1
有人遇到此错误吗?
更新
我将建议的版本更改为Flutter 1.17.5,现在出现下一个日志错误:
2020-08-18T07:40:48.2833420Z
2020-08-18T07:40:53.9032320Z Running "flutter pub get" in angusclient... 5.6s
2020-08-18T07:42:13.0082500Z Running Gradle task 'assembleRelease'...
2020-08-18T07:42:13.0102150Z
2020-08-18T07:42:13.0103930Z Compiler message:
2020-08-18T07:42:13.0104400Z
2020-08-18T07:42:13.0104760Z
2020-08-18T07:42:13.0105700Z lib/ui/Alerts.dart:63:36: Error: Getter not found: 'arrow_upward_sharp'.
2020-08-18T07:42:13.0108430Z
2020-08-18T07:42:13.0110350Z icon: Icon(Icons.arrow_upward_sharp),2020-08-18T07:42:13.0113380Z
2020-08-18T07:42:13.0115060Z ^^^^^^^^^^^^^^^^^^
2020-08-18T07:42:13.0116500Z
2020-08-18T07:42:13.0118540Z lib/ui/Alerts.dart:99:45: Error: Getter not found: 'warning_amber_outlined'.
2020-08-18T07:42:13.0120570Z
2020-08-18T07:42:13.0121300Z leading: Icon(Icons.warning_amber_outlined),2020-08-18T07:42:13.0122660Z
2020-08-18T07:42:13.0124090Z ^^^^^^^^^^^^^^^^^^^^^^
2020-08-18T07:42:19.7446230Z
2020-08-18T07:42:19.7448540Z Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
2020-08-18T07:42:19.7448910Z
2020-08-18T07:42:19.7450480Z build failed.
2020-08-18T07:42:19.8622130Z
2020-08-18T07:42:19.8624860Z
2020-08-18T07:42:19.8625260Z
2020-08-18T07:42:19.8626630Z FAILURE: Build failed with an exception.
2020-08-18T07:42:19.8626970Z
2020-08-18T07:42:19.8627080Z
2020-08-18T07:42:19.8631600Z
2020-08-18T07:42:19.8632370Z * Where:
2020-08-18T07:42:19.8632580Z
2020-08-18T07:42:19.8633950Z Script '/Users/runner/hostedtoolcache/Flutter/1.17.5-stable/macos/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 882
2020-08-18T07:42:19.8640590Z
2020-08-18T07:42:19.8644940Z
2020-08-18T07:42:19.8645360Z
2020-08-18T07:42:19.8645710Z
2020-08-18T07:42:19.8646150Z * What went wrong:
2020-08-18T07:42:19.8647190Z Execution failed for task ':app:compileFlutterBuildRelease'.
2020-08-18T07:42:19.8647740Z
2020-08-18T07:42:19.8648820Z > Process 'command '/Users/runner/hostedtoolcache/Flutter/1.17.5-stable/macos/flutter/bin/flutter'' finished with non-zero exit value 1
2020-08-18T07:42:19.8649590Z
2020-08-18T07:42:19.8650010Z
2020-08-18T07:42:19.8654130Z
2020-08-18T07:42:19.8654380Z
2020-08-18T07:42:19.8654850Z * Try:
2020-08-18T07:42:19.8656050Z 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.
2020-08-18T07:42:19.8656480Z
2020-08-18T07:42:19.8656630Z
2020-08-18T07:42:19.8657370Z
2020-08-18T07:42:19.8659660Z * Get more help at https://help.gradle.org
2020-08-18T07:42:19.8661880Z
2020-08-18T07:42:19.8662150Z
2020-08-18T07:42:19.8662590Z
2020-08-18T07:42:19.8664140Z BUILD FAILED in 1m 24s
2020-08-18T07:42:20.6986960Z Running Gradle task 'assembleRelease'... 86.4s
2020-08-18T07:42:20.7121710Z Gradle task assembleRelease failed with exit code 1
2020-08-18T07:42:20.7411260Z ##[error]Error: The process '/Users/runner/hostedtoolcache/Flutter/1.17.5-stable/macos/flutter/bin/flutter' failed with exit code 1
2020-08-18T07:42:20.7427470Z ##[section]Finishing: FlutterBuild
首先感谢所有帮助者:)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)