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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment