dotween icon indicating copy to clipboard operation
dotween copied to clipboard

Build for Android failed - Error: IL2CPP error for type 'DG.Tweening.Tween' in assembly

Open VincentDevDAS opened this issue 2 years ago • 0 comments

Hi,

We are currently facing an issue when trying to build for Android, and we cannot figure out what is causing it or how to fix it.

This issue came more or less out of the blue, as we did not change anything related to DOTween—only some smaller changes to unrelated prefabs and scripts, without using any DOTween logic. Restarting Unity or the PC did not solve it, and neither did deleting and rebuilding the project's library.

Strangely, this is affecting the whole branch. Even if we go back to a commit from the past where building for Android previously worked fine, it does not work anymore. When switching to a different branch, building works fine again. Merging a 'broken' branch with a branch where building still works kind of 'fixes' the issue, even without any related files being changed.

So, we are quite interested in fixing the issue properly and are hopeful that somebody can help us with that.

Error Log 1:

C:\Program Files\Unity\Hub\Editor\2021.3.5f1\Editor\Data\il2cpp\build\deploy\il2cpp.exe --convert-to-cpp --assembly=Library/Bee/artifacts/Android/ManagedStripped/Assembly-CSharp-firstpass.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Assembly-CSharp.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Cinemachine.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/clipper_library.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/DissonanceVoip.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/DOTween.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Fabric.Core.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/HSVPicker.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/HTC.VIVE.OPENXR.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/kcp2k.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Mirror.Authenticators.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Mirror.Components.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Mirror.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Mirror.Examples.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Mirror.Transports.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Mono.Security.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/mscorlib.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/NobleConnect.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/SimpleWebTransport.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.Configuration.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.Core.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.Globalization.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.Numerics.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/System.Xml.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Telepathy.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UltEvents.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.InputSystem.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.TextMeshPro.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.Timeline.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.CoreUtils.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.Interaction.Toolkit.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.Management.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.OpenXR.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.OpenXR.Features.ConformanceAutomation.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.OpenXR.Features.MockRuntime.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.OpenXR.Features.OculusQuestSupport.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Unity.XR.OpenXR.Features.RuntimeDebugger.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.AIModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.AndroidJNIModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.AnimationModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.AssetBundleModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.AudioModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.CoreModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.DirectorModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.GridModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.IMGUIModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.InputLegacyModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.InputModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.JSONSerializeModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.ParticleSystemModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.Physics2DModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.PhysicsModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.SharedInternalsModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.SpatialTracking.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.SpriteShapeModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.SubsystemsModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.TextCoreFontEngineModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.TextCoreTextEngineModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.TextRenderingModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.TilemapModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UI.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UIElementsModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UIElementsNativeModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UIModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UnityAnalyticsModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UnityWebRequestModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.UnityWebRequestWWWModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.VideoModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.VRModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/UnityEngine.XRModule.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Wave.OpenXR.dll --assembly=Library/Bee/artifacts/Android/ManagedStripped/Wave.XRSDK.dll --data-folder=E:/Repositories/Apollo/Library/Bee/artifacts/Android/il2cppOutput/data --generatedcppdir=E:/Repositories/Apollo/Library/Bee/artifacts/Android/il2cppOutput/cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile=unityaot-linux --profiler-report --profiler-output-file=E:/Repositories/Apollo/Library/Bee/artifacts/il2cpp_conv_twwv.traceevents --print-command-line Error: IL2CPP error for type 'DG.Tweening.Tween' in assembly 'E:\Repositories\Apollo\Library\Bee\artifacts\Android\ManagedStripped\DOTween.dll' System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at Unity.IL2CPP.CodeWriters.ChunkedMemoryStream.Seek(Int64 offset, SeekOrigin origin) at Unity.IL2CPP.CodeWriters.InMemoryGeneratedMethodCodeWriter.Write(IGeneratedMethodCodeStream other) at Unity.IL2CPP.SourceWriters.SourceWriterBase2.FlushStream(GlobalWriteContext context, IGeneratedMethodCodeStream stream, NPath filePath) at Unity.IL2CPP.Contexts.Scheduling.Streams.FileLevelParallelStreamManager3.WorkerWriteItemsToFile(WorkItemData`2 data) at Unity.IL2CPP.Contexts.Scheduling.PhaseWorkScheduler1.WorkerLoop(Object data) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Error Log 2:

BuildFailedException: Incremental Player build failed! UnityEditor.Modules.BeeBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <1f0be198f5164d2489de92f22c998266>:0) UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <1f0be198f5164d2489de92f22c998266>:0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <66a36f4eb7c24c42bf1d8c5cb4777570>:0) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, 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 <1f0be198f5164d2489de92f22c998266>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

VincentDevDAS avatar Dec 12 '23 10:12 VincentDevDAS