quickstart-unity: Errors in importing Firebase sdk package in unity
Please fill in the following fields:
Unity editor version: 2017.4.12f 1 personal Firebase Unity SDK version: 6.13.0 Firebase plugins in use (Auth, Database, etc.): Analytics and RemoteConfig Additional SDKs you are using (Facebook, AdMob, etc.): Facebook, PlayFab, ChatBoost, GoogleMobileAds and AudienceNetwork Platform you are using the Unity editor on (Mac, Windows, or Linux): Mac Platform you are targeting (iOS, Android, and/or desktop): Android Scripting Runtime (Mono, and/or IL2CPP):Mono
Please describe the issue here:
I downloaded the firebase unity package and imported the analytics and remoteconfig unity firebase package in the unity and then got these many error . I imported the dotnet3 version of the unity packages … There are 850+ errors and the error logs says so :
MissingMethodException: Method not found: 'Google.EditorMeasurement.set_InstallSourceFilename'.
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Firebase.Editor.Measurement
Firebase.Editor.AndroidSettingsChecker..cctor () (at Z:/tmp/tmp.SHkOPK7iEJ/firebase/app/client/unity/editor/src/AndroidAPILevelChecker.cs:37)
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Firebase.Editor.AndroidSettingsChecker
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (RuntimeTypeHandle type) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Runtime.CompilerServices/RuntimeHelpers.cs:101)
UnityEditor.EditorAssemblies.ProcessEditorInitializeOnLoad (System.Type type) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:136)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:519)
System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:528)
System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:77)
System.Activator.CreateInstance (System.Type type, Boolean nonPublic) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Activator.cs:372)
System.Activator.CreateInstance (System.Type type) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Activator.cs:254)
UnityEditor.AssetPostprocessingInternal.GetTextureProcessorVersions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssetPostprocessor.cs:309)
UnityEditor.AssetDatabase:Refresh()
GooglePlayServices.<ResolveUnsafe>c__AnonStorey21:<>m__42(Boolean, String) (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1753)
GooglePlayServices.<ResolveUnsafe>c__AnonStorey21:<>m__4C() (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1791)
Google.RunOnMainThread:ExecuteNext() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:377)
Google.RunOnMainThread:<ExecuteAll>m__A() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:408)
Google.RunOnMainThread:RunAction(Action) (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:234)
Google.RunOnMainThread:ExecuteAll() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:406)
Google.RunOnMainThread:Run(Action, Boolean) (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:363)
GooglePlayServices.<ResolveUnsafe>c__AnonStorey21:<>m__44() (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1790)
GooglePlayServices.<DoResolution>c__AnonStorey13:<>m__29() (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/GradleResolver.cs:713)
GooglePlayServices.<DoResolutionUnsafe>c__AnonStorey14:<>m__1F(List`1) (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/GradleResolver.cs:761)
GooglePlayServices.<GradleResolution>c__AnonStoreyF:<>m__16() (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/GradleResolver.cs:318)
GooglePlayServices.<GradleResolution>c__AnonStoreyF:<>m__24() (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/GradleResolver.cs:383)
GooglePlayServices.<ProcessAars>c__AnonStorey17:<>m__21() (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/GradleResolver.cs:1011)
Google.RunOnMainThread:ExecutePollingJobs() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:300)
Google.RunOnMainThread:<ExecuteAll>m__A() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:414)
Google.RunOnMainThread:RunAction(Action) (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:234)
Google.RunOnMainThread:ExecuteAll() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:406)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Please answer the following, if applicable:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? I tried adding the quickstart project , but there are different kinds of errors in that projects but not these errors which i faced in my own project
What’s the issue repro rate? (eg 100%, 1/5 etc) 100%
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (1 by maintainers)
Seems like
Firebase.Editor.dll
cannot findGoogle.EditorMeasurement
, which is a new class in the new version of External Dependency Manager (EDM), which was renamed from Play Services Resolver.If you are unable to build, here is what you can do:
ExternalDependencyManager
andPlayServicesResolver
under yourAssets
folder. Remove them.Assets > External Dependency Manager > Android Resolver > Settings
and see ifEnable Auto-Resolution
is on. Or you can force resolution usingAssets > External Dependency Manager > Android Resolver > Force Resolve
Assets > External Dependency Manager > iOS Resolver > Setting
.Podfile Generation
should be checked.Let me know if it helps.
To be clear both @Jacowaco and @pruthvi:
ExternalDependencyManager
PlayServicesResolver
If this all holds true, the next ask would be that you reproduce this in one of the quickstarts (such as the Analytics one). If you run into a separate issue as @swats1010 mentioned, make sure you follow the README steps for your quickstart (such as making sure you install the Firebase SDK separately, since it doesn’t ship as part of the quickstart). Once we have confirmation of your environment, the error you experience, and steps to reproduce in the quickstart we can quickly iterate on a patch to whatever issue you’re experiencing!
I really feel bad about seeming so pedantic, but we really want to fix whatever issue you’re having. These steps just are a way to ensure that we can find the exact issue that you’re experiencing, fix it, and ensure that the fix doesn’t regress in the future!
–Patrick