我正试图通过使用该版本将Firebase注册集成到我的应用程序中
firebase_auth: ^3.3.6 & firebase_core: ^1.11.0
,在pubspec中使用并在应用程序中初始化为
final _auth = FirebaseAuth.instance;
是否已将主firebase初始化为
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(const MyApp());
}
我得到一个错误声明为
/C:/src/flutter2.8/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:14:11: Error: Member not found: 'Error.throwWithStackTrace'. Error.throwWithStackTrace(exception, stackTrace);