Search Issue Tracker
Won't Fix
Votes
0
Found in
2020.3.44f1
Issue ID
UUM-22229
Regression
No
Building an App Bundle fails with “DirectoryNotFoundException" when the project contains an asset bundle put in a path with at least 217 characters
How to reproduce:
1. Open the user’s attached “Client.zip“ project
2. Build the “SampleScene“ Scene for Android
3. Observe the Console
Expected result: There are no errors in the Console window and the aab file is generated successfully
Actual result: “DirectoryNotFoundException: Could not find a part of the path ""“ error appears and the aab file isn't generated
Reproducible with: 2020.2.0b3, 2020.3.44f1
Not reproducible with: 2021.1.0a1, 2021.3.16f1, 2022.2.2f1, 2023.1.0a25
Note: App Bundle builds successfully if a path contains 216 characters
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
The issue is actually caused by a long file path issue. The given bundle path is greater than 255 characters, which is why Windows is unable to find the bundle.
There are bundle naming modes on the Group settings that can be used to mitigate this issue.