Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2019.4.18f1
2021.2.0a2
Issue ID
1307154
Regression
No
[Android] Exporting project with Symlinked Sources on top of already exported project keeps copied .java and .kt files
How to reproduce:
1. Open the attached project (it has .java plugin)
2. In Build Settings enable "Export Project" and keep Symlink Sources off
3. Export project and specify folder where you want it to be exported
3.1 Examine exported project MyExportedProject/unityLibrary/src/java/com
3.2 Notice that it has unity/statictestj folder with JavaPlug.java
4. Go back to Unity and set Symlink Sources on in Build Settings
5. Export project to the same folder where it was exported in Step 3
Actual result: unity/statictestj folder with JavaPlug.java remains in the project and building project via Android Studio fails because of
duplicate class: com.unity.statictestj.JavaPlug
Expected result: When exporting on top of another project, files which are not needed should be deleted.
Reproduced: 2021.2.0a2, 2020.2.0b13, 2019.4.18f1
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2021.2):
Fixed by incremental pipeline. 2021.2.a18