I need help with Firebase integration

Hello,
I’m using Unity 2022.3.5f,
I followed the instructions from: अपने Unity प्रोजेक्ट में Firebase जोड़ना  |  Firebase for Unity to integrate Firebase into my project.

after importing Firebase’s package into Unity, I received these errors:

TypeLoadException: Could not resolve type with token 01000075 from typeref (expected class 'Google.EditorInitializer' in assembly 'Google.VersionHandlerImpl, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null')
Rethrow as TypeInitializationException: The type initializer for 'Firebase.Editor.GenerateXmlFromGoogleServicesJson' threw an exception.
(wrapper write-barrier) System.Object.wbarrier_conc(intptr)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eef08f56e2e042f1b3027eca477293d9>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eef08f56e2e042f1b3027eca477293d9>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <eef08f56e2e042f1b3027eca477293d9>:0)
UnityEditor.AssetPostprocessingInternal.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) (at <bf6080dbf0564cf1b405dfd6e0dac725>:0)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets, System.Boolean didDomainReload) (at <bf6080dbf0564cf1b405dfd6e0dac725>:0)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()

TypeLoadException: Could not resolve type with token 01000075 from typeref (expected class 'Google.EditorInitializer' in assembly 'Google.VersionHandlerImpl, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null')
Rethrow as TypeInitializationException: The type initializer for 'Firebase.Editor.XcodeProjectPatcher' threw an exception.
(wrapper write-barrier) System.Object.wbarrier_conc(intptr)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eef08f56e2e042f1b3027eca477293d9>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eef08f56e2e042f1b3027eca477293d9>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <eef08f56e2e042f1b3027eca477293d9>:0)
UnityEditor.AssetPostprocessingInternal.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) (at <bf6080dbf0564cf1b405dfd6e0dac725>:0)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets, System.Boolean didDomainReload) (at <bf6080dbf0564cf1b405dfd6e0dac725>:0)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()

System.TypeLoadException: Could not load type of field 'Firebase.Editor.Measurement:analytics' (4) due to: Could not resolve type with token 01000034 from typeref (expected class 'Google.EditorMeasurement' in assembly 'Google.VersionHandlerImpl, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null') assembly:Google.VersionHandlerImpl, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null type:Google.EditorMeasurement member:(null)
  at Firebase.Editor.AndroidSettingsChecker..cctor () [0x00015] in /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/editor/app/src/AndroidAPILevelChecker.cs:37
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])

has anyone ran into this issue?
how can I resolve this?

Thanks in advance.

Just a tip: if you can’t get this resolved, create a new Unity project and go through each of the steps again.
If that works, you should be able to export a .unitypackage and import it into your current project.

it seems Firebase is conflicted with other libraries in my project (I’m suspicious of ironSource Ads package)

I created a new project and imported Firebase, there is no problems.

The error messages don’t indicate this. They say the type could not be found, which means it may not be registered correctly. For example, if your scripts are in an Assembly Definition you’d have to reference the Firebase DLLs in the asmdef for the scripts to be able to access them.

Hi,
I’m sure I have not referenced any DLLs in the new project, the errors are reported in the Editor, not in a build.
I will look around a bit more, maybe the DLL references got removed for some reasons.