Search Unity

Bug IL2CPP Error on build

Discussion in 'Editor & General Support' started by Kultie, Nov 16, 2021.

  1. Kultie

    Kultie

    Joined:
    Nov 14, 2018
    Posts:
    48
    Hi,
    Has anyone encountered this error when build IL2CPP for android (Haven't test on iOS yet) when building project?
    Code (CSharp):
    1. Exception: IL2CPP error for event 'System.Action`1<Lean.Touch.LeanFinger> Lean.Touch.LeanTouch::OnFingerInactive' in G:\UnityProjects\Portal\Assets\Lean\Touch\Scripts\LeanTouch.cs:74
    2. System.ArgumentNullException: Value cannot be null. (Parameter 'key')
    3.    at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
    4.    at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
    5.  
    I tried to build again but each time I build I got other error but still related to IL2CPP
    Code (CSharp):
    1. IL2CPP error for type '<PrivateImplementationDetails>/__StaticArrayInitTypeSize=24' in assembly 'G:\UnityProjects\Portal\Temp\StagingArea\assets\bin\Data\Managed\spine-unity.dll'
    2. System.NullReferenceException: Object reference not set to an instance of an object.
    3.  
    Code (CSharp):
    1. Exception: IL2CPP error for method 'System.UInt32 <PrivateImplementationDetails>::ComputeStringHash(System.String)' in assembly 'G:\UnityProjects\Portal\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Purchasing.Stores.dll'
    2. System.ArgumentNullException: Value cannot be null. (Parameter 'key')
    3.    at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
    4.    at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
    5.  
    What is this and what can I do about it?

    I'm using Unity2020.3.11f1(LTS)