Search Issue Tracker
Fixed in 2019.4.X
Votes
0
Found in
2019.4
2019.4.31f1
Issue ID
1380097
Regression
No
[Batch Mode] Compilation error on first launch of Android batch build results in Unity closing with non-zero exit code
Reproduction steps:
1. Download and extract the attached "1129098.zip" reproduction files
2. Modify buildWin.bat and buildAndroid.bat with the paths on your machine (This includes the path to the Unity Editor, Project path and log paths)
3. Modify the path to the package on your machine "\1129098\SampleProject\Packages\manifest.json"
4. Run "buildWin.bat"
5. Note that "startup-editor.log" exits with code 0 - no errors
6. Modify "\1129098\SampleProject\Assets\SampleScript.cs" (e.g. add some new lines)
7. Run "buildAndroid.bat"
8. Note that "startup-editor.log" exits with code 1 - compilation error
Expected result: The first launch of Android batch build does not result in Unity closing with non-zero exit code
Actual result: Compilation error on the first launch of Android batch build results in Unity closing with non-zero exit code
Reproduces on: 2019.4.32f1
Does not reproduce on: 2020.3.23f1, 2021.2.3f1, 2022.1.0a15
Notes:
-"Assets\SampleScript.cs(14,24): error CS0117: 'RuntimeExample' does not contain a definition for 'IsAndroidPlatform'" Error outputted in "startup-Unity.txt" log
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
Add comment