我已经显式地将firebase_core_platform_interface添加到pubspec.yaml中,但是仍然不能工作
这是错误消息
: Error: Member not found: 'FirebaseAppPlatform.verifyExtends'.
firebase_app.dart:18
FirebaseAppPlatform.verifyExtends(_delegate);
^^^^^^^^^^^^^
: Error: The method 'FallThroughError' isn't defined for the class 'ActionCodeInfo'.
action_code_info.dart:64
- 'ActionCodeInfo' is from 'package:firebase_auth_platform_interface/src/action_code_info.dart' ('../../.pub-cache/hosted/pub.dev/firebase_auth_platform_interface-4.3.1/lib/src/action_code_info.dart').
action_code_info.dart:1
Try correcting the name to the name of an existing method, or defining a method named 'FallThroughError'.
throw FallThroughError();
^^^^^^^^^^^^^^^^
: Error: Method not found: 'FallThroughError'.
load_bundle_task_state.dart:13
在它的pubspec。锁
firebase_core_platform_interface:
dependency: "direct main"
description:
name: firebase_core_platform_interface
sha256: b63e3be6c96ef5c33bdec1aab23c91eb00696f6452f0519401d640938c94cba2
url: "https://pub.dev"
source: hosted
version: "4.8.0"
帮助我能够运行我以前的项目
1条答案
按热度按时间njthzxwz1#
试试这个:-1)删除pubspec.lock2)做一个flutterclean 3)运行flutterpubget(应该返回输出)4)再次构建项目(在调试模式下)