Home > Mobile >  Unable to Initialize Firebase in my application - Flutter
Unable to Initialize Firebase in my application - Flutter

Time:03-21

I'm trying to integrate the Firebase registration in my application by using the version firebase_auth: ^3.3.6 & firebase_core: ^1.11.0, upon using this in pubspec and initializing in the app as final _auth = FirebaseAuth.instance;

Do have initialized firebase in main as

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(const MyApp());
}

I'm getting an error stating as /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);

CodePudding user response:

Try to upgrade your flutter using, flutter upgrade

If this is not working than try using lower version of firebase_auth:2.0.0

I found this Link

  • Related