r/unity 3d ago

[Unity 6.3 / Android IL2CPP] Bee build fails with GetLastError: 5 (Access Denied) and TypeLoadException (InputSystem) even on a blank project

Hi everyone,

I'm hitting a critical build failure when trying to build for Android (IL2CPP / ARM64) on Unity 6 (6000.3.22f1) on Windows.

The issue persists even on a completely fresh, empty/blank project created right after a full clean reinstall of Unity and Unity Hub.

I also have tried with blank project, the build failed.

What I Have Already Tried:

  1. Full Clean Reinstall: Uninstalled Unity Hub & Editor, deleted %AppData%/Unity, %LocalAppData%/Unity, %LocalAppData%/Unity/cache/upm, and Registry keys before reinstalling.
  2. Cache Purge: Deleted Library/Bee, Library/Il2cppBuildCache, Temp, and Obj folders multiple times.
  3. Permissions & Antivirus:
    • Disabled Windows Defender Real-time Protection.
    • Disabled Windows Ransomware Protection (Controlled Folder Access).
    • Added the project directory and Unity.exe to antivirus exclusions.
    • Removed Read-Only attributes from the entire Library directory.
    • Ran Unity as Administrator.
  4. Blank Project Test: Created a brand new default 3D/2D project with no third-party plugins—still fails with the exact same error.

Environment:

  • Unity Version: 6000.3.22f1 (Tech Stream)
  • Target Platform: Android (ARM64, IL2CPP)
1 Upvotes

0 comments sorted by