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
- Buttons in the Overlay Menu in the Scene View are all gray even if they're activated when Game View is maximized and minimized
- NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
- Editor crashes on PrepareSpriteTilingData when exiting Play mode
Add comment