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
- Non-multisampled texture binding errors are logged when running the DepthBlit URP scene with MSAA enabled on Vulkan
- The Editor does not recognize code errors in generic classes when using C# Source Generator to generate serialization code
- Long Sprite names are not truncated in the Inspector window name label and the preview labels when a Sprite with a long name is selected
- NullReferenceException is logged when undoing Deletion of a Visual Query Block of a Search Expression
- “Unsupported type MinMaxCurve” error and “Could not register property modification for animation binding…” warnings are thrown after moving playhead when Particle System Property is added to Animation 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