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.