Search Unity

Question I suddenly cannot "Build and Run", but I can just "Build".

Discussion in 'Android' started by tmr80977, May 27, 2021.

  1. tmr80977

    tmr80977

    Joined:
    Sep 9, 2020
    Posts:
    3
    I've been working on this project for months, but suddenly I cannot use the Build and Run button. The build fails with these errors:

    Build completed with a result of 'Failed' in 12 seconds (11849 ms)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 6 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <7587a42c8322471cbc42b27c9b8eab3c>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <7587a42c8322471cbc42b27c9b8eab3c>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)​

    I can still Build regularly, move the APK to my phone via usb, and install from the file browser with no problems. However, this is very tedious. Does anyone have tips for resolving this issue? Thanks a lot!
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,920
    Please post full error or attach Editor.log (https://docs.unity3d.com/Manual/LogFiles.html)