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
- Look Dev errors are spammed when opening a new HDRP project when Look Dev was added to the layout in the previous project
- URP Scene Templates are not editable when first opened from the New Scene dialog
- Look Dev window flickers when resizing the window after docking it
- UI breaks when Multiplayer Center window section divider is moved too far
- Adaptive Performance documentation link leads to outdated package documentation when the documentation hyperlink is pressed in the Project Settings window
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