Search Unity

IL2CPP compile error after upgrading 2018.2.0f2.

Discussion in 'Android' started by sunxdc15, Jul 17, 2018.

  1. sunxdc15

    sunxdc15

    Joined:
    Jan 2, 2014
    Posts:
    8
    hello guys,
    we met a IL2CPP error when upgrading unity2018.2.0f2 in android. it's ok in ios. anybody can help?
    by the way, if we switch to Mono, it' ok.
    Exception: C:\Program Files\Unity\Editor\Data\il2cpp/build/UnityLinker.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1 setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (IEnumerable`1 args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:91)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, IIl2CppPlatformProvider platformProvider, IEnumerable`1 additionalBlacklist, BuildTargetGroup buildTargetGroup) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:84)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:215)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:115)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:170)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:287)
    UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
    Commandbuild:_BuildAndroidBypassBundle() (at Assets/Editor/Commandbuild.cs:194)
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,931
    There should be an additional error, or more details with this one. I think that additional information will help us determine the cause of the issue. Can you provide it?
     
  3. sunxdc15

    sunxdc15

    Joined:
    Jan 2, 2014
    Posts:
    8
    we fixed it by installing .Net FrameWork 4.6, before the pc only installed 4.5.
     
  4. Michieal

    Michieal

    Joined:
    Jul 7, 2013
    Posts:
    92
    Here's the error, followed by the second error that pops up.


    Win32Exception: ApplicationName='D:/Android/sdk_New\platform-tools\aapt.exe', CommandLine='package -v -f -F obb.ap_ -A obbassets --ignore-assets "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"', CurrentDirectory='Temp/StagingArea'
    System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
    System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
    System.Diagnostics.Process.Start ()
    (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
    UnityEditor.Utils.Program.Start (System.EventHandler exitCallback) (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:44)
    UnityEditor.Utils.Program.Start () (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:28)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg)
    UnityEditor.Android.PostProcessor.Tasks.AAPTPackage.AAPTPack (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String apkName, System.String directory, Boolean compress)
    UnityEditor.Android.PostProcessor.Tasks.AAPTPackage.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:287)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Second Error:
    Stopped polling job due to exception: System.IO.IOException: Sharing violation on path Temp\GoogleAarExplodeCache.xml
    at System.IO.File.Delete (System.String path) [0x000b2] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:179
    at GooglePlayServices.ResolverVer1_1.SaveAarExplodeCache () [0x00000] in <filename unknown>:0
    at GooglePlayServices.ResolverVer1_1.OnBuildSettings () [0x00000] in <filename unknown>:0
    at GooglePlayServices.PlayServicesResolver.ResolveUnsafe (System.Action`1 resolutionComplete, Boolean forceResolution) [0x00000] in <filename unknown>:0
    at GooglePlayServices.PlayServicesResolver+<ScheduleResolve>c__AnonStorey10.<>m__1B () [0x00000] in <filename unknown>:0
    at GooglePlayServices.PlayServicesResolver.ExecuteNextResolveJob () [0x00000] in <filename unknown>:0
    at GooglePlayServices.PlayServicesResolver.ScheduleResolve (Boolean forceResolution, System.Action`1 resolutionCompleteWithResult, Boolean isAutoResolveJob) [0x00000] in <filename unknown>:0
    at GooglePlayServices.PlayServicesResolver.AutoResolve (System.Action resolutionComplete) [0x00000] in <filename unknown>:0
    at GooglePlayServices.PlayServicesResolver.<ScheduleAutoResolve>m__13 () [0x00000] in <filename unknown>:0
    at Google.RunOnMainThread+ScheduledJob.PollUntilExecutionTime () [0x00000] in <filename unknown>:0
    at Google.RunOnMainThread.ExecutePollingJobs () [0x00000] in <filename unknown>:0
    0x00000001415369B8 (Unity) StackWalker::GetCurrentCallstack
    0x000000014153CEF6 (Unity) StackWalker::ShowCallstack
    0x000000014140BA5B (Unity) GetStacktrace
    0x00000001408AE8F0 (Unity) DebugStringToFile
    0x00000001418D8428 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    0x000000003B29A40B (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object)
    0x000000003B29A264 (Mono JIT Code) [DebugLogHandler.cs:9] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    0x000000003B299B65 (Mono JIT Code) [Logger.cs:47] UnityEngine.Logger:Log (UnityEngine.LogType,object)
    0x000000003BDCF683 (Mono JIT Code) [Debug.bindings.cs:117] UnityEngine.Debug:LogError (object)
    0x000000003B29D3AB (Mono JIT Code) Google.RunOnMainThread:ExecutePollingJobs ()
    0x000000003B29B6BD (Mono JIT Code) Google.RunOnMainThread:ExecuteAll ()
    0x000000003BD9FE64 (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FDAC (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FDAC (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FDAC (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FDAC (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FDAC (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FDAC (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FDAC (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FDAC (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FDAC (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FDAC (Mono JIT Code) (wrapper delegate-invoke) UnityEditor.EditorApplication/CallbackFunction:invoke_void__this__ ()
    0x000000003BD9FAA9 (Mono JIT Code) [EditorApplication.cs:191] UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
    0x0000000000BD11DE (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    0x00007FF97061671B (mono) [mini.c:4937] mono_jit_runtime_invoke
    0x00007FF970568A71 (mono) [object.c:2623] mono_runtime_invoke
    0x0000000140BF9267 (Unity) CallStaticMonoMethod
    0x0000000140BF8FEE (Unity) CallStaticMonoMethod
    0x00000001413DCDF3 (Unity) SceneTracker::Update
    0x0000000141448DB8 (Unity) Application::TickTimer
    0x00000001415E8135 (Unity) MainMessageLoop
    0x00000001415EA51C (Unity) WinMain
    0x000000014242D8FA (Unity) __scrt_common_main_seh
    0x00007FF9B7113034 (KERNEL32) BaseThreadInitThunk
    0x00007FF9B9CE1431 (ntdll) RtlUserThreadStart