UnityLinker.exe error Android build
Im trying to make a build fro Google play but keep getting build errors when I set it to 64 bit and il2cpp. if i build in mono its fine.
Hi iv spent like 3 days trying to get this working from suggestions on the forums and internet. Reinstalling and restarting several times. This seems like a common problem but i cant seem to get the fixes to fix it.
Any help would be much appreciated.
Heres the erros i get when tryign to build right now.
Im running windows 7 , Unity 2020.2.0a15.19993, i tested on windows 10 too same unity version and had a similar error, also had a similar error on mac, still pointing to UnityLinker.exe
Win32Exception: ApplicationName='C:\Program Files\Unity\Hub\Editor\2020.2.0a15\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe', CommandLine='-out="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/tempStrip" -x="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/../platform_native_link.xml" -x=C:/Users/PC/AppData/Local/Temp/tmp1bd257ad.tmp -x=C:/Users/PC/AppData/Local/Temp/tmp5bbc64e.tmp -x="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/TypesInScenes.xml" -d="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed" --include-unity-root-assembly="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/Assembly-CSharp.dll" --include-unity-root-assembly="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/Unity.RenderPipelines.Universal.Runtime.dll" --include-unity-root-assembly="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/Unity.TextMeshPro.dll" --include-unity-root-assembly="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/Unity.RenderPipelines.Core.Runtime.dll" --include-unity-root-assembly="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/UnityEngine.UI.dll" --include-unity-root-assembly="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/Bolt.Core.Runtime.dll" --include-unity-root-assembly="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/Bolt.Flow.Runtime.dll" --include-unity-root-assembly="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/Ludiq.Core.Runtime.dll" --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed" --rule-set=Conservative --editor-data-file="C:/Users/PC/Documents/GitHub/bowl em down/bowlemdown/Temp/StagingArea/assets/bin/Data/Managed/EditorToUnityLinkerData.json" --platform=Android --enable-engine-module-stripping --engine-stripping-flag=EnableUnityConnect --engine-stripping-flag=EnablePerformanceReporting --engine-stripping-flag=EnableAnalytics --engine-modules-asset-file="C:/Program Files/Unity/Hub/Editor/2020.2.0a15/Editor/Data/PlaybackEngines/AndroidPlayer/Whitelists/../modules.asset"', CurrentDirectory='C:\Users\PC\Documents\GitHub\bowl em down\bowlemdown\Temp\StagingArea\assets\bin\Data\Managed', Native error= The requested operation requires elevation.
System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at :0) System.Diagnostics.Process.Start () (at :0) (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start() UnityEditor.Utils.Program.Start (System.EventHandler exitCallback) (at :0) UnityEditor.Utils.Program.Start () (at :0) UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at :0) UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at :0) UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at :0) UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at :0) UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at :0) UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at :0) UnityEditorInternal.IL2CPPBuilder.Run () (at :0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at :0) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :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 :0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :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 :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Build completed with a result of 'Failed' in 29 seconds (28614 ms) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002c6] in :0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
thanks Ally
This looks like some kind of permissions error with the .NET Framework. Do you happen to have Unity installed as the same user account that you are using to run it? I think this can happen with Windows 7 is Unity is installed via an ad$$anonymous$$istrator account, but run via a non-ad$$anonymous$$istrator account.