Search Issue Tracker
Won't Fix
Votes
1
Found in
2020.3
2020.3.5f1
2021.1
2021.2
2022.1
Issue ID
1366347
Regression
No
[IL2CPP] Build error on Unity 2020.3 and later when using exported DLL from Unity 2019.4
How to reproduce:
1. Open the attached user's project 'IL2CPP_Error_2020.zip'
2. Build And Run on Android
3. Observe logs in the Console
Expected results: The build succeeds without any errors
Actual results: The build fails with 'NullReferenceException' and 'ArgumentNullException' errors in the Console
Reproducible with: 2020.3.20f1, 2021.1.24f1, 2021.2.0b15, 2022.1.0a12
Not reproducible with: 2019.4.31f1 (the DLL is created with this Unity version)
Notes:
- Does not reproduce with Mono Scripting Backend
- Does not reproduce with DLL that is exported from Unity 2020.3 or later
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2022.1.X):
Between 2019 and 2020 an API change was made to the base class of UnityEngine.XR.ARFoundation.ARSession. Specifically an additional generic argument was added to the UnityEngine.XR.ARFoundation.SubsystemLifecycleManager class. Any dlls built within 2019 will need to be recompiled from source in Unity 2020 or later.