任务 ':app:compileFlutterBuildProfile' 执行失败

Execution failed for task ':app:compileFlutterBuildProfile'

我正在做一个试图构建 apk 的 flutter 项目,但它给我一个错误。

这是我尝试 运行 app

时收到的错误代码
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/chewie-0.9.10/lib/src/chewie_player.dart:83:7: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
  resizeToAvoidBottomPadding: false,
  ^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/scaffold.dart:1451:9: Context: Found this   candidate, but the arguments don't match.
const Scaffold({
    ^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/chewie-0.9.10/lib/src/chewie_player.dart:276:17: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
    context.inheritFromWidgetOfExactType(_ChewieControllerProvider)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^


FAILURE: Build failed with an exception.
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991

 * What went wrong:
Execution failed for task ':app:compileFlutterBuildProfile'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

我尝试过的解决方案

*删除了 pubspec.lock 文件并执行了 pub-get

*无效缓存

似乎 chewie: 0.9.10 有问题,此软件包的最新版本是 chewie: ^1.0.0,请尝试使用最新版本。
pubspec.yaml、运行 flutter clean 中进行更改后,先尝试重新构建。