我一直在我的代码中得到这些错误,但真的不知道是什么原因造成的。我已经升级了我的一些软件包,所以我不确定是否与它有关。任何帮助都是感激的。
以下是完整的错误消息:
Running Gradle task 'assembleDebug'...
../../.pub-cache/hosted/pub.dev/firebase_core-2.15.1/lib/src/firebase_app.dart:18:25: Error: Member not found: 'FirebaseAppPlatform.verify'.
FirebaseAppPlatform.verify(_delegate);
^^^^^^
../../.pub-cache/hosted/pub.dev/extended_image-8.0.2/lib/src/image/painting.dart:202:13: Error: 'ImageTilingInfo' isn't a type.
final ImageTilingInfo info =
^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_image-8.0.2/lib/src/image/painting.dart:203:11: Error: Method not found: 'createTilingInfo'.
createTilingInfo(repeat, rect, destinationRect, sourceRect);
^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_image-8.0.2/lib/src/extended_image.dart:976:36: Error: The argument type 'BorderRadius?' can't be assigned to the parameter type 'BorderRadiusGeometry' because 'BorderRadius?' is nullable and 'BorderRadiusGeometry' isn't.
- 'BorderRadius' is from 'package:flutter/src/painting/border_radius.dart' ('../../snap/flutter/common/flutter/packages/flutter/lib/src/painting/border_radius.dart').
- 'BorderRadiusGeometry' is from 'package:flutter/src/painting/border_radius.dart' ('../../snap/flutter/common/flutter/packages/flutter/lib/src/painting/border_radius.dart').
borderRadius: widget.borderRadius,
^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/home/user/snap/flutter/common/flutter/bin/flutter'' 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 2m 6s
Exception: Gradle task assembleDebug failed with exit code 1
Some packages were updated.
字符串
1条答案
按热度按时间kcugc4gi1#
在我的情况下,我是升级Flutter,所以我有这个麻烦一样,你。
所以我只是降级了Flutter版本并修复了这个问题,我接下来要做的是:
字符串
希望能帮到你。