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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
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.