Search Issue Tracker
Not Reproducible
Votes
2
Found in
2018.4
2019.4
2020.3
2020.3.0f1
2021.1
2021.2
Issue ID
1324073
Regression
No
[Android] Application.systemLanguage returns invalid language when at least one language is added to Plugins/Android/res/values
Reproduction steps:
1. Download and open the attached project "1324073.zip"
2. Build and install on Android
3. Change the system language to English
4. Open the application and investigate the logged message
5. Close and kill the application
6. Change the system language to Czech
7. Open the application and investigate the logged message
Expected result: "Language From Application.systemLanguage: Czech" is logged
Actual result: "Language From Application.systemLanguage: English" is logged
Reproducible with: 2018.4.33f1, 2019.4.23f1, 2020.3.3f1, 2021.1.2f1, 2021.2.0a12
Notes:
The behavior is correct if Plugins/Android/res folder is removed
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 (2021.2.X):
The latest Unity version no longer supports putting res folder to Plugins/Android. Now you should be using Android libraries (.aar or library projects).
I've tried using that with given res folder and I could not reproduce this bug that way. Android libraries are supported in all current Unity versions.