LoginSignup
2
1

More than 1 year has passed since last update.

【Flutter】Error解決: Command PhaseScriptExecution failed with a nonzero exit code

Posted at

Error 内容

../../../.pub-cache/hosted/pub.dartlang.org/carousel_slider-4.1.1/lib/carousel_slider.dart:268:7: Error: No named parameter with the name 'padEnds'.
      padEnds: widget.options.padEnds,
      ^^^^^^^
../../../fvm/versions/2.2.1/packages/flutter/lib/src/widgets/page_view.dart:664:3: Context: Found this candidate, but the arguments don't match.
  PageView.builder({
  ^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:13:11: Error: Method not found: 'Error.throwWithStackTrace'.
    Error.throwWithStackTrace(exception, stackTrace);
          ^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:16:9: Error: Method not found: 'Error.throwWithStackTrace'.
  Error.throwWithStackTrace(
        ^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:11:7: Error: A non-null value must be returned since the return type 'Never' doesn't allow null.
Never convertPlatformException(Object exception, StackTrace stackTrace) {
      ^

Command PhaseScriptExecution failed with a nonzero exit code

原因

Flutterのバージョンを上げて、下げた際に発生していたエラーで、パッケージのバージョンの不具合が発生していました。

解決方法

  1. パッケージのバージョンをpubspec.yamlに記載のバージョンに戻す。
flutter pub downgrade
  1. パッケージのバージョンを再度更新する。
flutter pub pugrade
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1