Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugFillProperties Command PhaseScriptExecution failed with a nonzero exit code #17

Open
Zss1990 opened this issue Feb 1, 2021 · 0 comments

Comments

@Zss1990
Copy link

Zss1990 commented Feb 1, 2021

您好,我在学习flutter参考您的项目,项目写的挺好的,大大点赞
有遇到问题,xcode编译中中发下一个错误
`
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.
class PictureStream with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:44: Error: Type 'DiagnosticableMixin' not found.
abstract class PictureStreamCompleter with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class PictureStream with DiagnosticableMixin {
^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:16: Error: The type 'DiagnosticableMixin' can't be mixed in.
abstract class PictureStreamCompleter with DiagnosticableMixin {
^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
super.debugFillProperties(properties);
^^^^^^^^^^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:171:30: Error: The method 'toStringShort' isn't defined for the class 'PictureStreamCompleter'.

  • 'PictureStreamCompleter' is from 'package:flutter_svg/src/picture_stream.dart' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'toStringShort'.
    ifPresent: _completer?.toStringShort(),
    ^^^^^^^^^^^^^
    ../../../../../../.pub-cache/hosted/pub.flutter-io.cn/flutter_svg-0.17.2/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(description);
    ^^^^^^^^^^^^^^^^^^^

Command PhaseScriptExecution failed with a nonzero exit code
`
找到的解决方法为pubspec.yaml文件修改为’ flutter_svg: ^0.18.0‘重新flutter pub get即可
请指正

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant