can't build with IL2CPP and firebase for android

IL2CPP build fails after importing Firebase package.
In Firebase, the package that fits the Unity version was imported as described in the cautionary point. I don’t know what problem I’m missing.

error messages :

Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Editor\2020.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK oolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @“C:\Users\USER\AppData\Local\Temp mp2A5F.tmp” -o “D:{Directory Path}\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_E6AD6BEB6F935A9D9C117FA888D14E24\libil2cpp.so” -shared -Wl,-soname,libil2cpp.so -Wl,–no-undefined -Wl,-z,noexecstack -Wl,–gc-sections -Wl,–build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,–wrap,sigaction “C:\Program Files\Unity\Editor\2020.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release\StaticLibs\armeabi-v7a\baselib.a” -llog -rdynamic -fuse-ld=gold.exe

D:{Directory Path}\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Assembly-CSharp3.cpp:36883: error: undefined reference to ‘Alert’
D:{Directory Path}\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Assembly-CSharp3.cpp:36900: error: undefined reference to ‘Log’
D:{Directory Path}\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Assembly-CSharp3.cpp:36917: error: undefined reference to ‘Warn’
D:{Directory Path}\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput/Assembly-CSharp3.cpp:36934: error: undefined reference to ‘Error’
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)

at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet1 objectFiles, CppToolChainContext toolChainContext) at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection1 matchedAssemblyMethodSourceFiles)
at il2cpp.Program.DoRun(String args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions)
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <25e9afc147634a5ca855ab83fab425dd>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1[T] setupStartInfo) (at <25e9afc147634a5ca855ab83fab425dd>:0) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List1[T] arguments, System.Action1[T] setupStartInfo) (at <25e9afc147634a5ca855ab83fab425dd>:0) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <25e9afc147634a5ca855ab83fab425dd>:0) UnityEditorInternal.IL2CPPBuilder.Run () (at <25e9afc147634a5ca855ab83fab425dd>:0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <25e9afc147634a5ca855ab83fab425dd>:0)
UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <1f5aacfb83804e518b48285b5fe58926>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <1f5aacfb83804e518b48285b5fe58926>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <1f5aacfb83804e518b48285b5fe58926>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <1f5aacfb83804e518b48285b5fe58926>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <25e9afc147634a5ca855ab83fab425dd>:0)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

1 Answer

1

any solution?