Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2018.4.14f1
2019.2
2019.3
2020.1
Issue ID
1208696
Regression
No
[IL2CPP][Android] Property("Comparer") of a Dictionary is not found when running the build with .NET 4.0
Steps to reproduce:
1. Open user's attached project "Test2.zip"
2. Build it on android as developer build with Scripting Backend: IL2CPP
3. Open the build on the device
4. While the app is loading in Unity set Console window to display the device information
5. Notice that "Comparer" option is not displayed
Expected results: PropertyInfo info = typeDict.GetProperty("Comparer") is displayed in the console as "Comparer"
Actual resutls: PropertyInfo info = typeDict.GetProperty("Comparer") is not diplayed
Reproducible with: 2018.4.15f1, 2019.2.17f1, 2019.3.0f5, 2020.1.0a18
VLNQA00121, Samsung Galaxy S9 (SM-G960F), Android 9, CPU: Exynos 9 Series 9810, GPU: Mali-G72
VLNQA00099, Google Pixel XL (Pixel XL), Android 9, CPU: Snapdragon 821 MSM8996 Pro, GPU: Adreno (TM) 530
Devices not reproducible with: iPhone 11 iOS 13.0
Note: APK from Unity version 2017.4 fails to install to the android devices .NET Standart 2.0 fails to display anything in the console with Android devices but displays the expected results with IOS
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
- Warnings related to App Icon are being thrown when building project to VisionOS Platform
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
Resolution Note:
To correct avoid this, add the following link.xml file to the Asset folder of this project:
<linker>
<assembly fullname="mscorlib" preserve="all">
<type fullname="System.Collecions.Generic.Dictionary`2" preserve="all"/>
</assembly>
</linker>
More details about the link.xml file are available here: https://docs.unity3d.com/Manual/IL2CPP-BytecodeStripping.html, and general information about managed code stripping is available here: https://docs.unity3d.com/Manual/ManagedCodeStripping.html