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
- The terrain appears darker when "Per-pixel Normal" is enabled
- [Linux] Editor assertion causes Test Runner to fail when executing it in Batch Mode
- Color selection by the mouse cursor is still enabled when the "Esc" button is pressed
- Game view becomes black and the Scene window becomes grey, “ArgumentOutOfRangeException” errors and “Render Pipeline error” warnings appear after changing the name or deleting URP/HDRP global settings file
- Transform Component is not accessible inside the Player when RuntimeInitializeOnLoadMethod is used
Add comment