不在 androidStudio 中编译我的 flutter 应用程序

发布时间:2021-03-07 21:46

我遇到了这个错误的大问题,应用程序无法编译,你能帮我吗,我尝试了一切更新gradle,flutter,flutter clean,flutter run --verbose,但它不起作用,< strong>如果有人解决了我的问题,我会为 paypal 提供小额奖励 可以使用anydesk

    Launching lib\main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_simple_video_player-0.0.9/lib/flutter_simple_video_player.dart:124:33: Error: No named parameter with the name 'isInitialRoute'.
        settings: RouteSettings(isInitialRoute: false),
                                ^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/widgets/navigator.dart:499:9: Context: Found this candidate, but the arguments don't match.
  const RouteSettings({
        ^^^^^^^^^^^^^


FAILURE: Build failed with an exception.

* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 900

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\bin\flutter.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.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 43s
Exception: Gradle task assembleDebug failed with exit code 1
回答1