Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

Help Wanted Not able to Bulid and Run an app, Unity instantly stops the build with a vague error

Discussion in 'Android' started by Kolyasisan, Feb 1, 2021.

  1. Kolyasisan

    Kolyasisan

    Joined:
    Feb 2, 2015
    Posts:
    357
    The title should be self-explanatory.

    When trying to build the project the usual way (via the Build button), everything works perfectly fine. However, when trying to build it via the Build and Run button, Unity immediately throws a couple of exceptions and stops the build with seemingly no descriptive errors.

    It works on an empty project with all the same settings, but I can't figure out what may cause it. Urgent help is needed. The project runs on Unity 2020.2.1f1

    Exception 1:
    Exception 2:
    Also attached Editor.log in a zip file:
     

    Attached Files:

  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,609
    There are errors like:
    Code (CSharp):
    1. 'svn' is not recognized as an internal or external command,
    2. Can't find subversion version
    Do you have version control enabled? It feels like it's not properly setup.
     
  3. Kolyasisan

    Kolyasisan

    Joined:
    Feb 2, 2015
    Posts:
    357
    Yes, we do have additional version control scripts hooking up before the build for validation. However, it's a legacy system that we still haven't removed. All it does now is just write a couple of Debug.LogError() messages. Those errors are not an issue when building for other platforms (Windows, PS4, XONE, Switch).
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,609
    Any error printed during the build is considered a build error, you might want to fix those
     
  5. Kolyasisan

    Kolyasisan

    Joined:
    Feb 2, 2015
    Posts:
    357
    Okay, we did as you requested. The problem persists.

    First exception:
    Second exception:
    Editor log:
     

    Attached Files:

    Last edited: Feb 2, 2021
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,609
    There are shader errors:
    Shader error in 'MegaFlares/Flare': undeclared identifier 'flarePosTemp' at line 379 (on gles3)
    Shader error in 'MegaFlares/Flare': undeclared identifier 'flarePosTemp' at line 379 (on vulkan)
     
  7. Kolyasisan

    Kolyasisan

    Joined:
    Feb 2, 2015
    Posts:
    357
    IIRC shaders should never straight-up sabotage the build process.
    That said though, I've reinstalled unity and all of its components and rebooted the PC and that seemed to help. Thanks for your time.
     
unityunity