Search Issue Tracker
By Design
Votes
0
Found in
2021.3.47f1
2022.3.56f1
6000.0.33f1
6000.1.0b1
7000.0.0a17
Issue ID
UUM-92394
Regression
No
[Android Module] Unity double writes files in the "StreamingAssets" folder when they are deleted using "IPostGenerateGradleAndroidProject" after the Grandle project is generated
How to reproduce:
1. Open the “ReproStreamingAssets.zip“ project
2. Open the “SampleScene“ scene
3. Build for Android
4. Change the “<name_of_APK>.apk“ extension to “.zip“
5. Extract it and navigate to the “<name_of_APK>/Assets/“
Expected result: The “CompletelyEmptyZIP.zip“ and “GradleDoubleWrite.zip“ files are not present in the Assets folder
Actual result: The “CompletelyEmptyZIP.zip“ and “GradleDoubleWrite.zip“ files are present in the Assets folder
Reproducible with: 2021.3.47f1, 2022.3.56f1, 6000.0.33f1, 6000.1.0b1
Reproducible environment: macOS 15.1.1 (Intel)
Not reproducible environment: No other environment tested
Could not test: Windows 10 Pro (22H2) (Could not find the “zip.jar“ file location)
Note: Adding a breakpoint at the end of the “CustomBuildProcess.cs“ to stop the Editor at that moment, will show that the “CompletelyEmptyZIP.zip“ and “GradleDoubleWrite.zip“ are deleted but then written back
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 Perforce Integration: VCS Connection Active State Fails via CLI with Valid Inputs
- Joint Gizmos for anchor and connectedAnchor do not respect their defined bodies when Swap Bodies is enabled
- Project Settings window opens up with a blank details pane when the "Configure" button is clicked in the Package Manager after installing the Cloud Diagnostics package
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
Resolution Note:
There is no sense in deleting or modifying files inside build/intermediates folder. These files are not created by Unity, gradle generates them while building APK or AAB. These files don't even exist when OnPostGenerateGradleAndroidProject is being called and when building for the first time.
StreamingAssets files end up in unityLibrary/src/main/assets folder of the Unity generated gradle project.