Firebase Flutter Android

Hello, ive been stuck for days with this problem. Ive added Firebase auth (Google Sign in, email sign in) and added all needed code. But i still get this message when trying to start my emulator in Flutter. Performing hot restart…
Syncing files to device sdk gphone64 x86 64…
Restarted application in 10 246ms.
E/flutter ( 4451): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(java.lang.Exception: Failed to load FirebaseOptions from resource. Check that you have defined values.xml correctly., Exception, Cause: null, Stacktrace: java.lang.Exception: Failed to load FirebaseOptions from resource. Check that you have defined values.xml correctly.
E/flutter ( 4451): at io.flutter.plugins.firebase.core.FlutterFirebaseCorePlugin.lambda$optionsFromResource$4$io-flutter-plugins-firebase-core-FlutterFirebaseCorePlugin(FlutterFirebaseCorePlugin.java:207)
E/flutter ( 4451): at io.flutter.plugins.firebase.core.FlutterFirebaseCorePlugin$$ExternalSyntheticLambda2.run(Unknown Source:4)
E/flutter ( 4451): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
E/flutter ( 4451): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
E/flutter ( 4451): at java.lang.Thread.run(Thread.java:1012)
E/flutter ( 4451): , null)
E/flutter ( 4451): #0 FirebaseCoreHostApi.optionsFromResource (package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart:242:7)
E/flutter ( 4451):
E/flutter ( 4451): #1 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:89:25)
E/flutter ( 4451):
E/flutter ( 4451): #2 Firebase.initializeApp (package:firebase_core/src/firebase.dart:66:31)
E/flutter ( 4451):
E/flutter ( 4451): #3 main (package:sets_reps_final/main.dart:9:3)
E/flutter ( 4451):
E/flutter ( 4451):

The error you’re seeing occurs because the Flutter Firebase plugin is unable to load the FirebaseOptions from your project’s values.xml file in the Android module. This is usually caused by a misconfiguration in your Firebase setup.

Place the google-services.json in android/app/ and confirm that the file has correct Firebase project settings. Open the JSON file and verify values such as project_id, api_key, and application_id. Ensure your android/build.gradle file includes the Google Services plugin. Then, in your android/app/build.gradle, apply the Google Services plugin at the end of the file. The error specifically mentions an issue with values.xml. This file should be auto-generated if the google-services.json is set up correctly