一个奇怪的滚动视图警告...在 Flutter 中构建 apk 时产生问题

A weird Scrollview Warning... creating problems in building apk in Flutter

我不知道为什么我会在 flutter packages 路径中看到这个错误,并且有 shrinkwrap 问题...每次我尝试生成或构建我的代码的 apk 时,这个错误都会停止编译器并显示以下消息.

PS D:\Flutter_apps\splash_screen> flutter clean
Deleting 'build\'.
PS D:\Flutter_apps\splash_screen> flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...                                           1.5s
Resolving dependencies...                                        3.0s
Gradle task 'assembleDebug'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

Compiler message:
file:///D:/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:670:10: Error: Duplicated parameter name 'shrinkWrap'.
    bool shrinkWrap = false,
         ^^^^^^^^^^
file:///D:/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:663:17: Error: Other parameter named 'shrinkWrap'.
  ListView(bool shrinkWrap, {
                ^^^^^^^^^^
file:///D:/flutter/packages/flutter/lib/src/material/about.dart:476:28: Error: Too few positional arguments: 1 required, 0 given.
            child: ListView(
                           ^
file:///D:/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:663:3: Error: Found this candidate, but the arguments don't match.
  ListView(bool shrinkWrap, {
  ^
file:///D:/flutter/packages/flutter/lib/src/material/dropdown.dart:191:34: Error: Too few positional arguments: 1 required, 0 given.
                  child: ListView(
                                 ^
file:///D:/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:663:3: Error: Found this candidate, but the arguments don't match.
  ListView(bool shrinkWrap, {
  ^
file:///D:/flutter/packages/flutter/lib/src/material/stepper.dart:544:20: Error: Too few positional arguments: 1 required, 0 given.
    return ListView(
                   ^
file:///D:/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:663:3: Error: Found this candidate, but the arguments don't match.
  ListView(bool shrinkWrap, {
  ^
file:///D:/flutter/packages/flutter/lib/src/material/stepper.dart:602:26: Error: Too few positional arguments: 1 required, 0 given.
          child: ListView(
                         ^
file:///D:/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:663:3: Error: Found this candidate, but the arguments don't match.
  ListView(bool shrinkWrap, {
  ^
file:///D:/flutter/packages/flutter/lib/src/material/two_level_list.dart:282:20: Error: Too few positional arguments: 1 required, 0 given.
    return ListView(
                   ^
file:///D:/flutter/packages/flutter/lib/src/widgets/scroll_view.dart:663:3: Error: Found this candidate, but the arguments don't match.
  ListView(bool shrinkWrap, {
  ^
Compiler failed on D:\Flutter_apps\splash_screen\lib/main.dart
14.7s
Gradle task assembleDebug failed with exit code 1

我什至试过 flutter clean 但它不起作用....并尝试在 google 上搜索它但找不到任何东西。

重新安装Flutter SDK 问题解决。