Pessoal, estou tentando utilizar o firebase em app flutter, a instalação correu bem e a conexão tambem.
porem quando tento inicializar meu app tenho um erro dizendo que tem algo não implementado.
já removi o firebase_core do pubspec.yaml e adicionei novamente porem ainda sim o problema persiste.
sempre que tento inicializar meu app com a inicialização do Firebase no main ele da o erro:
meu main:
import 'package:firebase_core/firebase_core.dart';
import 'firebase_options.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
await InjectorDependecies.initialize();
Intl.defaultLocale = 'pt_BR';
runApp(const AppWidget());
}
Alguem consegue me ajudar?
√ Built build\app\outputs\flutter-apk\app-debug.apk
Connecting to VM Service at ws://127.0.0.1:51214/iPtpilT7DsQ=/ws
E/flutter (14671): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method Firebase#initializeCore on channel plugins.flutter.io/firebase_core)
E/flutter (14671): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
E/flutter (14671): <asynchronous suspension>
E/flutter (14671): #1 MethodChannel.invokeListMethod (package:flutter/src/services/platform_channel.dart:520:35)
E/flutter (14671): <asynchronous suspension>
E/flutter (14671): #2 MethodChannelFirebase._initializeCore (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:31:23)
E/flutter (14671): <asynchronous suspension>
E/flutter (14671): #3 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:73:7)
E/flutter (14671): <asynchronous suspension>
E/flutter (14671): #4 Firebase.initializeApp (package:firebase_core/src/firebase.dart:40:31)
E/flutter (14671): <asynchronous suspension>
E/flutter (14671): #5 main (package:autolac_mobile/main.dart:12:3)
E/flutter (14671): <asynchronous suspension>
E/flutter (14671):
D/ProfileInstaller(14671): Installing profile for com.mobile.autolac.autolac_mobile