flutter - FLUTTER:无法释放。第 1005 行出错
问题描述
当我尝试制作发布版 APK 或捆绑包时出现此错误。当我运行调试时,一切都很顺利 - 有人有什么想法吗?
的结果run --release --verbose
[ +1 ms] FAILURE: Build failed with an exception.
[ +1 ms] * Where:
[ ] Script
'..\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005[ +1 ms] * What went wrong:
[ ] Execution failed for task ':app:compileFlutterBuildRelease'.
[ ] > Process 'command '..\flutter\bin\flutter.bat'' finishedwith non-zero exit value 1
[ +1 ms] * Try:
[ +1 ms] Run with --stacktrace option to get the stack trace. Run with --info or --debug optionto get more log output. Run with --scan to get full insights.
[ +1 ms] * Get more help at https://help.gradle.org
[ ] BUILD FAILED in 38s
对于一个全新的项目,我得到了同样的错误,没有编辑
解决方案
做“flutter build apk --no-shrink”对我有用
推荐阅读
- android - 是否可以使用 Firebase 测试实验室测试从一个应用版本到新版本的迁移?
- colors - ICC 颜色配置文件能够匹配 Pantone、RAL 等
- python - 如何在 Python 3 中使用 klepto sqltable_archive 设置表名?
- javascript - 处理单元格点击 - Google 电子表格 - Appscript
- java - 如何从另一台电脑的客户端连接到我自己机器上的服务器?
- css - CSS不会显示背景图片?
- r - R 中 brms 条件效应的平均结果
- python - Ray 对象存储使用 out of core 耗尽内存。如何配置像 s3 存储桶这样的外部对象存储?
- python - 在模板中放置类别以下的项目
- haskell - 在多种数据类型上使用 System.Random - Haskell 方式?