flutter 未找到成员:“FirebaseAppPlatform. verify”,,“ImageTilingInfo”不是类型,,未找到方法:“ImageTilingInfo,参数类型”BorderRad

lfapxunr  于 6个月前  发布在  Flutter
关注(0)|答案(1)|浏览(193)

我一直在我的代码中得到这些错误,但真的不知道是什么原因造成的。我已经升级了我的一些软件包,所以我不确定是否与它有关。任何帮助都是感激的。
以下是完整的错误消息:

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.

字符串

kcugc4gi

kcugc4gi1#

在我的情况下,我是升级Flutter,所以我有这个麻烦一样,你。
所以我只是降级了Flutter版本并修复了这个问题,我接下来要做的是:

rm ios/Podfile
flutter pub upgrade
flutter pub get
cd ios && pod update
dart run build_runner build --delete-conflicting-outputs
flutter clean && flutter run

字符串
希望能帮到你。

相关问题