UE5 Android Packaging Error (System.IO.DirectoryNotFound)

Hey everyone! I’m currently trying to package in ue5 for quest 2 and keep running into this error. I’ve updated android studio, changed my sdk version, restarted etc but can’t seem to get anywhere. Anyone know what’s causing this? Thanks!

“PackagingResults: Error: System.IO.DirectoryNotFoundException: Could not find a part of the path ‘C:\Users\Blake\AppData\Local\Temp\UAT\D+Stuffs+Unreal+UE_5.0\Rules\UATRules-a6cf6bf48bd3e735b2f58f99670fd771Manifest.json’.”

Same issue!

Unfortunately no luck here yet. I’ve also posted in the Unreal Slackers discord and got no reply. Let me know if you make any progress on this front! I’ll probably try another discord as well.

I got this figured out! Okay, so this error wasn’t actually what was causing the crash. I looked further up in my log and found these errors piling up:

I navigated to this .target.cs file and found that the numbers at the beginning of my project file name were being highlighted.

I renamed my project file (.uproject file, not project folder) to not have numbers at the beginning and now I’m able to package.

TLDR
Don’t start your .uproject file name with a number!

3 Likes

I’ve added the solution to this problem if you’re still having issues with this!

This is pure madness, you also have to delete your intermediate folder otherwise it still doesn’t package…

Thank you for the hint!

2 Likes

for me the problem was in the file host

Can’t package in Unreal Engine 5 ( UE5 ) simple fix ! - YouTube

Hello everyone, I’ve been struggling with the problem myself for a long time. What clearly helped with the problem: in the UE editor itself, go to platforms - Windows (or whatever you want) - click on your device - Force Update Device
I have updated from the second time, after that he starts swearing at another error "Unreal engine PackagingResults: Error: System.NullReferenceException: Object reference not set to an instance of an object
Next, we go to the directory “Your project\Intermediate\Source”, select everything, cut it out, create a folder here and throw everything there, click packaging in the editor.