回眸一笑可倾天下
  • 0
  • 新人请关照

flutter打包,如果资源文件太大的话,打包就会报错

需要把一些视频 图片什么的预先放到assets里面,但是如果资源文件太大的话,打包就会报错,有没有人遇到过相同问题!!!

Oops; flutter has exited unexpectedly.
Crash report written to F:flutter_browserflutter_01.log;
please let us know at https://github.com/flutter/fl...

FAILURE: Build failed with an exception.

  • Where:

Script 'C:AndroidBrowserbranchesflutterpackagesflutter_toolsgradleflutter.gradle' line: 765

  • What went wrong:

Execution failed for task ':app:compileFlutterBuildReleaseArm64'.

Process 'command 'C:AndroidBrowserbranchesflutterbinflutter.bat'' finished with non-zero exit value 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.

BUILD FAILED in 36m 41s

Gradle task assembleRelease failed with exit code 1

阅读 1.1k
评论 2019-10-16 提问
    1 个回答
    Nur01
    • 4
    • 新人请关照

    同样的问题。但是我的资料文件才150KB左右这也算大资料吗?

    评论 赞赏
      撰写回答

      登录后参与交流、获取后续更新提醒