Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2019.4.X, 2021.1.X
Votes
0
Found in
2019.4.31f1
2021.1.17f1
Issue ID
1355394
Regression
Yes
"UnityException: Unable to package apk Unity library missing for the selected architecture x86" error on android il2cpp builds
Steps to reproduce:
1. Open attached "testproj.zip" Unity project
2. Switch to Android build target in Build Settings
3. Switch Scripting Backend to IL2CPP (notice how x86 (Chrome OS)" target architecture is automatically enabled)
4. Build for Android in Build Settings
Expected result: Project builds successfully
Actual result: Build fails with error
UnityException: Unable to package apk
Unity library missing for the selected architecture x86 (/Applications/Unity/Hub/Editor/2021.1.17f1/PlaybackEngines/AndroidPlayer/Variations/il2cpp/Release/StaticLibs/x86/libunityruntime.a) !
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
Reproduced with: 2021.1.17f1
Didn’t Reproduce with: 2022.1.0a5, 2021.2.0b6, 2021.1.16f1, 2020.3.15f1, 2019.4.29f1
Note: "x86 (Chrome OS)" Target Architecture is enabled by default when this project is upgraded to 2021.1.17f1, meaning some upgraded projects will fail to build on android il2cpp by default
Workaround: Disable "x86 (Chrome OS)" Target Architecture in Project Settings
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab's scripts are constantly reloaded when trying to enter multiple digits or characters into public fields on custom scripts consecutively
- [Linux] Progress modal window stays on top of every other window and cannot be moved
- Crash on mono_g_hash_table_find_slot when entering Play Mode
- [iOS] Crash when pressing "Done" on the keyboard layout
- Sprite Atlas remains loaded in memory after scene change or unloading assets
Add comment