Search Unity

Errors when building as Android APK

Discussion in 'Editor & General Support' started by kavoogames, Sep 13, 2019.

  1. kavoogames

    kavoogames

    Joined:
    Sep 12, 2019
    Posts:
    2
    When I go to build my project, I get 3 errors.
    I am using Unity 2019.2.3f1
    I've been looking all day for a solution, yet nothing seems to work. I do not understand the nature of these error messages.
    Yes, I have correctly set the path to the SDK and attempted to downgrade the 'tools' folder to previous versions such as 25.23.
    JDK version is the default 1.8.0_152. Attempting to upgrade/downgrade the JDK simply doesn't allow it.
    Same thing goes for the NDK, any upgrade/downgrade doesn't get accepted.
    My Editor.log after build fail is also at the bottom.
    When I play the game in the Editor, it plays fine but outputs an error when a video ad appears. The video ad functionality seems to work fine and the game still continues as normal after, but could the error have something to do with build fail?
    The error is "
    NullReferenceException: Object reference not set to an instance of an object".
    There are also several warnings when the game starts; I don't know if that could affect the build either (warnings and all errors are in the Editor.log provided below)
    Any help is greatly appreciated, I have no other solutions.


    Here are the errors:

    1- "UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)"

    2- "Build completed with a result of 'Failed'
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)"

    3-"
    ArgumentNullException: Value cannot be null.
    Parameter name: path1
    System.IO.Path.Combine (System.String path1, System.String path2) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
    UnityEditor.Utils.Paths.Combine (System.String[] components) (at C:/buildslave/unity/build/Editor/Mono/Utils/Paths.cs:29)
    UnityEditor.Android.AndroidGradleRoot.GetGradleLaunchJarPath (System.String directory) (at <5557b445b4634c46b2ec8376c040bd34>:0)
    UnityEditor.Android.GradleWrapper.GetBaseCommand (System.Int32 jvmHeapSize) (at <5557b445b4634c46b2ec8376c040bd34>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.ExecuteWarmup (System.String stagingArea) (at <5557b445b4634c46b2ec8376c040bd34>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <5557b445b4634c46b2ec8376c040bd34>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <5557b445b4634c46b2ec8376c040bd34>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)"


    Here is my Editor.log file after build fail:

    Initiating legacy licensing module

    LICENSE SYSTEM [2019913 5:28:15] Next license update check is after 2019-09-13T16:07:39


    LICENSE SYSTEM [2019913 5:28:15] 00330-80128-73953-AA153 != 00330-80000-00000-AA921

    Built from '2019.2/staging' branch; Version is '2019.2.3f1 (8e55c27a4621) revision 9328066'; Using compiler version '191627012'
    OS: 'Windows 10 (10.0.0) 64bit' Language: 'en' Physical Memory: 16333 MB
    BatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1, Is64bit: 1, IsPro: 0
    [Package Manager] Server::Start -- Port 63627 was selected

    COMMAND LINE ARGUMENTS:
    C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Unity.exeExiting without the bug reporter. Application will terminate with return code 0cloudEnvironment
    production
    -hubSessionId
    650fa760-d577-11e9-b317-2de51e4a7955
    Successfully changed project path to: C:/Users/Benji's Beast/TapUp - Copy - Copy
    C:/Users/Benji's Beast/TapUp - Copy - Copy
    Using Asset Import Pipeline V1.
    Loading GUID <-> Path mappings...0.000094 seconds
    Loading Asset Database...0.009261 seconds
    AssetDatabase consistency checks...0.044771 seconds
    [Package Manager] Done resolving packages in 0.39s seconds
    [Package Manager]
    Registered 43 packages:
    Packages from [https://packages.unity.com]:
    com.unity.ads@2.0.8 (location: C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.ads@2.0.8)
    com.unity.collab-proxy@1.2.16 (location: C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.collab-proxy@1.2.16)
    com.unity.ext.nunit@1.0.0 (location: C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.ext.nunit@1.0.0)
    com.unity.ide.rider@1.1.0 (location: C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.ide.rider@1.1.0)
    com.unity.ide.vscode@1.1.0 (location: C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.ide.vscode@1.1.0)
    com.unity.test-framework@1.0.13 (location: C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.test-framework@1.0.13)
    com.unity.textmeshpro@2.0.1 (location: C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.textmeshpro@2.0.1)
    Built-in packages:
    com.unity.2d.sprite@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.2d.sprite)
    com.unity.2d.tilemap@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.2d.tilemap)
    com.unity.package-manager-ui@2.2.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.package-manager-ui)
    com.unity.timeline@1.1.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.timeline)
    com.unity.ugui@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui)
    com.unity.modules.ai@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.ai)
    com.unity.modules.androidjni@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.androidjni)
    com.unity.modules.animation@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.animation)
    com.unity.modules.assetbundle@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.assetbundle)
    com.unity.modules.audio@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.audio)
    com.unity.modules.cloth@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.cloth)
    com.unity.modules.director@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.director)
    com.unity.modules.imageconversion@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.imageconversion)
    com.unity.modules.imgui@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.imgui)
    com.unity.modules.jsonserialize@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.jsonserialize)
    com.unity.modules.particlesystem@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.particlesystem)
    com.unity.modules.physics@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.physics)
    com.unity.modules.physics2d@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.physics2d)
    com.unity.modules.screencapture@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.screencapture)
    com.unity.modules.terrain@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.terrain)
    com.unity.modules.terrainphysics@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.terrainphysics)
    com.unity.modules.tilemap@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.tilemap)
    com.unity.modules.ui@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.ui)
    com.unity.modules.uielements@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.uielements)
    com.unity.modules.umbra@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.umbra)
    com.unity.modules.unityanalytics@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unityanalytics)
    com.unity.modules.unitywebrequest@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequest)
    com.unity.modules.unitywebrequestassetbundle@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestassetbundle)
    com.unity.modules.unitywebrequestaudio@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestaudio)
    com.unity.modules.unitywebrequesttexture@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequesttexture)
    com.unity.modules.unitywebrequestwww@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestwww)
    com.unity.modules.vehicles@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.vehicles)
    com.unity.modules.video@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.video)
    com.unity.modules.vr@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.vr)
    com.unity.modules.wind@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.wind)
    com.unity.modules.xr@1.0.0 (location: C:\Program Files\Unity\Hub\Editor\2019.2.3f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.xr)

    [XR] No new subsystems found in resolved package list.
    [Package Manager] Done registering packages in 0.03s seconds
    Refreshing native plugins compatible for Editor in 19.43 ms, found 0 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    IsTimeToCheckForNewEditor: Update time 1568345788 current 1568345298
    Initialize engine version: 2019.2.3f1 (8e55c27a4621)
    [XR] Discovering subsystems at path C:/Program Files/Unity/Hub/Editor/2019.2.3f1/Editor/Data/Resources/UnitySubsystems
    [XR] Discovering subsystems at path C:/Users/Benji's Beast/TapUp - Copy - Copy/Assets
    GfxDevice: creating device client; threaded=1
    Direct3D:
    Version: Direct3D 11.0 [level 11.1]
    Renderer: NVIDIA GeForce RTX 2070 (ID=0x1f07)
    Vendor:
    VRAM: 8031 MB
    Driver: 26.21.14.3160
    [EnlightenBakeManager] m_Clear = false;
    Initialize mono
    Mono path[0] = 'C:/Program Files/Unity/Hub/Editor/2019.2.3f1/Editor/Data/Managed'
    Mono path[1] = 'C:/Program Files/Unity/Hub/Editor/2019.2.3f1/Editor/Data/MonoBleedingEdge/lib/mono/unityjit'
    Mono config path = 'C:/Program Files/Unity/Hub/Editor/2019.2.3f1/Editor/Data/MonoBleedingEdge/etc'
    Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=127.0.0.1:56968
    Begin MonoManager ReloadAssembly
    Registering precompiled unity dll's ...
    Register platform support module: C:/Program Files/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll
    Register platform support module: C:/Program Files/Unity/Hub/Editor/2019.2.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/UnityEditor.Android.Extensions.dll
    Registered in 0.002509 seconds.
    Native extension for Android target not found
    Native extension for WindowsStandalone target not found
    Refreshing native plugins compatible for Editor in 0.44 ms, found 0 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    Unable to find bridge dll in registry for Microsoft Visual Studio Tools for Unity for C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
    Mono: successfully reloaded assembly
    - Completed reload, in 6.604 seconds
    Registering precompiled user dll's ...
    Registered in 0.092795 seconds.
    Platform modules already initialized, skipping
    Begin MonoManager ReloadAssembly
    Symbol file LoadedFromMemory doesn't match image C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.ext.nunit@1.0.0\net35\unity-custom\nunit.framework.dll
    Native extension for Android target not found
    Native extension for WindowsStandalone target not found
    Refreshing native plugins compatible for Editor in 0.46 ms, found 0 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    Unable to find bridge dll in registry for Microsoft Visual Studio Tools for Unity for C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
    Mono: successfully reloaded assembly
    - Completed reload, in 0.668 seconds
    Platform modules already initialized, skipping
    [ScriptCompilation] Recompiling all scripts because: Reload of assemblies failed, assemblies are invalid or forced recompiled
    - Starting compile Library/ScriptAssemblies/UnityEngine.TestRunner.dll
    - Starting compile Library/ScriptAssemblies/UnityEngine.UI.dll
    - Finished compile Library/ScriptAssemblies/UnityEngine.TestRunner.dll
    - Starting compile Library/ScriptAssemblies/UnityEditor.TestRunner.dll
    - Finished compile Library/ScriptAssemblies/UnityEngine.UI.dll
    - Finished compile Library/ScriptAssemblies/UnityEditor.TestRunner.dll
    - Starting compile Library/ScriptAssemblies/UnityEditor.UI.dll
    - Starting compile Library/ScriptAssemblies/Unity.2D.Tilemap.Editor.dll
    - Finished compile Library/ScriptAssemblies/UnityEditor.UI.dll
    - Finished compile Library/ScriptAssemblies/Unity.2D.Tilemap.Editor.dll
    - Starting compile Library/ScriptAssemblies/Unity.TextMeshPro.dll
    - Starting compile Library/ScriptAssemblies/Unity.Timeline.dll
    - Starting compile Library/ScriptAssemblies/Unity.2D.Sprite.Editor.dll
    - Starting compile Library/ScriptAssemblies/Unity.CollabProxy.Editor.dll
    - Starting compile Library/ScriptAssemblies/Unity.VSCode.Editor.dll
    - Starting compile Library/ScriptAssemblies/Unity.Rider.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.Timeline.dll
    - Finished compile Library/ScriptAssemblies/Unity.CollabProxy.Editor.dll
    - Starting compile Library/ScriptAssemblies/Unity.Timeline.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.VSCode.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.Rider.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.2D.Sprite.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.TextMeshPro.dll
    - Starting compile Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.Timeline.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll
    Begin MonoManager ReloadAssembly
    Symbol file LoadedFromMemory doesn't match image C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.ext.nunit@1.0.0\net35\unity-custom\nunit.framework.dll
    Native extension for Android target not found
    Native extension for WindowsStandalone target not found
    Refreshing native plugins compatible for Editor in 0.47 ms, found 0 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    Unable to find bridge dll in registry for Microsoft Visual Studio Tools for Unity for C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
    Mono: successfully reloaded assembly
    - Completed reload, in 0.889 seconds
    Platform modules already initialized, skipping
    - Starting compile Library/ScriptAssemblies/Assembly-CSharp.dll
    - Finished compile Library/ScriptAssemblies/Assembly-CSharp.dll
    Assets\Scripts\ScoreManager.cs(10,39): warning CS0649: Field 'ScoreManager.bestScoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\SoundManager.cs(18,15): warning CS0649: Field 'SoundManager.death' is never assigned to, and will always have its default value null
    Assets\Scripts\ScoreManager.cs(10,21): warning CS0649: Field 'ScoreManager.currentScoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\SoundManager.cs(16,17): warning CS0649: Field 'SoundManager.source' is never assigned to, and will always have its default value null
    Assets\Scripts\GameManager.cs(12,32): warning CS0649: Field 'GameManager.bestScoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\SoundManager.cs(18,22): warning CS0649: Field 'SoundManager.jump' is never assigned to, and will always have its default value null
    Assets\Scripts\StairSpawner.cs(8,16): warning CS0649: Field 'StairSpawner.stairPrefab' is never assigned to, and will always have its default value null
    Assets\Scripts\GameManager.cs(12,21): warning CS0649: Field 'GameManager.scoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\Player.cs(12,17): warning CS0414: The field 'Player.deathCount' is assigned but its value is never used
    Reloading assemblies after script compilation.
    Begin MonoManager ReloadAssembly
    Symbol file LoadedFromMemory doesn't match image C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.ext.nunit@1.0.0\net35\unity-custom\nunit.framework.dll
    Native extension for Android target not found
    Native extension for WindowsStandalone target not found
    Refreshing native plugins compatible for Editor in 0.45 ms, found 0 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    Unable to find bridge dll in registry for Microsoft Visual Studio Tools for Unity for C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
    Mono: successfully reloaded assembly
    - Completed reload, in 0.742 seconds
    Platform modules already initialized, skipping
    Validating Project structure ... 0.004386 seconds.
    Refresh: detecting if any assets need to be imported or removed ...
    Refreshing native plugins compatible for Editor in 0.45 ms, found 0 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    Refresh: detecting if any assets need to be imported or removed ...

    Refresh Completed time: 0.043930s
    Asset Scan time: 0.042834s
    Asset Hashing: 0.000000s [0 B, 0.000000 mb/s]
    Asset Import (Scripting) time: 0.000000s (count: 0)
    Post Processs Assets (Scripting) time: 0.000000s
    Asset Rehashing: 0.000000s [0 B, 0.000000 mb/s]
    Asset Import (Non Scripting) time: 0.000000s (count: 0)
    Post Process Assets (Non Scripting) time: 0.000000s
    Dependent Assets to Import Queue time: 0.000000s

    Launched and connected shader compiler UnityShaderCompiler.exe after 0.05 seconds
    Warming cache for 1537 main assets: 0.002060 seconds elapsed
    Initializing Unity extensions:
    'C:/Program Files/Unity/Hub/Editor/2019.2.3f1/Editor/Data/UnityExtensions/Unity/UnityVR/Editor/UnityEditor.VR.dll' GUID: 4ba2329b63d54f0187bcaa12486b1b0f
    LightmapEditorSettings: switching bake backend from 1 to 0.
    Unloading 1014 Unused Serialized files (Serialized files now loaded: 0)
    Loaded scene 'Assets/Scenes/Game.unity'
    Deserialize: 142.505 ms
    Integration: 80.022 ms
    Integration of assets: 7.795 ms
    Thread Wait Time: 16.790 ms
    Total Operation Time: 247.113 ms
    System memory in use before: 47.6 MB.
    System memory in use after: 47.7 MB.

    Unloading 98 unused Assets to reduce memory usage. Loaded Objects now: 1581.
    Total: 2.893763 ms (FindLiveObjects: 0.380160 ms CreateObjectMapping: 0.028800 ms MarkObjects: 2.383682 ms DeleteObjects: 0.100480 ms)

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    <RI> Initializing input.

    <RI> Input initialized.

    [Project] Loading completed in 25.948 seconds
    Project init time: 25.200 seconds
    Template init time: 0.000 seconds
    Services packages init time: 1.010 seconds
    Package Manager init time: 0.753 seconds
    Asset Database init time: 0.651 seconds
    Global illumination init time: 0.443 seconds
    Assemblies load time: 20.706 seconds
    Unity extensions init time: 0.001 seconds
    Asset Database refresh time: 0.044 seconds
    Scene opening time: 0.649 seconds
    Refreshing native plugins compatible for Editor in 10.03 ms, found 0 plugins.
    Created GICache directory at C:/Users/Benji's Beast/AppData/LocalLow/Unity/Caches/GiCache. Took: 0.055s, timestamps: [28.318 - 28.373]
    Setting up 4 worker threads for Enlighten.
    Thread -> id: a038 -> priority: 1
    Thread -> id: d938 -> priority: 1
    Thread -> id: 1aac8 -> priority: 1
    Thread -> id: 15e14 -> priority: 1
    TrimDiskCacheJob: Current cache size 0mb
    UPID Received '589bb2f9-56c9-4e21-b2a4-ac70a76e0447'.
    [CEF] Unrecognized Content-Security-Policy directive 'child-src'.
    in https://assetstore.unity.com/unity/loader?rt=/
    [CEF] Unrecognized Content-Security-Policy directive 'manifest-src'.
    in https://assetstore.unity.com/unity/loader?rt=/
    [CEF] Unrecognized Content-Security-Policy directive 'child-src'.
    in https://assetstore.unity.com/
    [CEF] Unrecognized Content-Security-Policy directive 'manifest-src'.
    in https://assetstore.unity.com/
    [CEF] Service worker not supported. in https://assetstore.unity.com/ at line 90
    [CEF] Refused to load the script 'https://static.ads-twitter.com/uwt.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' 'unsafe-eval' *.unity.com *.unitychina.cn *.unity3d.com *.cloudfront.net www.google-analytics.com www.googletagmanager.com tagmanager.google.com cdnjs.cloudflare.com d6tizftlrpuof.cloudfront.net *.optimizely.com cdn.heapanalytics.com heapanalytics.com *.adroll.com *.hotjar.com www.googleadservices.com connect.facebook.net *.doubleclick.net *.resonai.com storage.googleapis.com gen-as-admin-int.storage.googleapis.com gen-as-admin-stg.storage.googleapis.com gen-as-admin-prd.storage.googleapis.com unity-assetstorev2-stg.storage.googleapis.com unity-assetstorev2-prd.storage.googleapis.com *.naver.net *.bizographics.com prf.hn *.qualtrics.com".
    in https://assetstore.unity.com/
    [CEF] Refused to load the script 'https://js.adsrvr.org/up_loader.1.1.0.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' 'unsafe-eval' *.unity.com *.unitychina.cn *.unity3d.com *.cloudfront.net www.google-analytics.com www.googletagmanager.com tagmanager.google.com cdnjs.cloudflare.com d6tizftlrpuof.cloudfront.net *.optimizely.com cdn.heapanalytics.com heapanalytics.com *.adroll.com *.hotjar.com www.googleadservices.com connect.facebook.net *.doubleclick.net *.resonai.com storage.googleapis.com gen-as-admin-int.storage.googleapis.com gen-as-admin-stg.storage.googleapis.com gen-as-admin-prd.storage.googleapis.com unity-assetstorev2-stg.storage.googleapis.com unity-assetstorev2-prd.storage.googleapis.com *.naver.net *.bizographics.com prf.hn *.qualtrics.com".
    in https://assetstore.unity.com/
    [CEF] Unrecognized Content-Security-Policy directive 'child-src'.
    in about:blank
    [CEF] Unrecognized Content-Security-Policy directive 'manifest-src'.
    in about:blank
    Refresh: detecting if any assets need to be imported or removed ...

    Refresh Completed time: 0.045469s
    Asset Scan time: 0.044170s
    Asset Hashing: 0.000000s [0 B, 0.000000 mb/s]
    Asset Import (Scripting) time: 0.000000s (count: 0)
    Post Processs Assets (Scripting) time: 0.000000s
    Asset Rehashing: 0.000000s [0 B, 0.000000 mb/s]
    Asset Import (Non Scripting) time: 0.000000s (count: 0)
    Post Process Assets (Non Scripting) time: 0.000000s
    Dependent Assets to Import Queue time: 0.000000s

    Refresh: detecting if any assets need to be imported or removed ...

    Refresh Completed time: 0.045994s
    Asset Scan time: 0.044704s
    Asset Hashing: 0.000000s [0 B, 0.000000 mb/s]
    Asset Import (Scripting) time: 0.000000s (count: 0)
    Post Processs Assets (Scripting) time: 0.000000s
    Asset Rehashing: 0.000000s [0 B, 0.000000 mb/s]
    Asset Import (Non Scripting) time: 0.000000s (count: 0)
    Post Process Assets (Non Scripting) time: 0.000000s
    Dependent Assets to Import Queue time: 0.000000s

    Reloading assemblies for play mode.
    Begin MonoManager ReloadAssembly
    Symbol file LoadedFromMemory doesn't match image C:\Users\Benji's Beast\TapUp - Copy - Copy\Library\PackageCache\com.unity.ext.nunit@1.0.0\net35\unity-custom\nunit.framework.dll
    Native extension for Android target not found
    Native extension for WindowsStandalone target not found
    Refreshing native plugins compatible for Editor in 0.47 ms, found 0 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    Unable to find bridge dll in registry for Microsoft Visual Studio Tools for Unity for C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
    Mono: successfully reloaded assembly
    - Completed reload, in 1.224 seconds
    Platform modules already initialized, skipping
    <RI> Initialized touch support.

    LightmapEditorSettings: switching bake backend from 1 to 0.
    UnityAdsEditor: Initialize(3288926, True);
    UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:Log(Object)
    UnityEngine.Advertisements.Editor.Platform:Initialize(String, Boolean) (at /home/builduser/buildslave/com.unity.ads/package/Source/UnityAds/Editor/Platform.cs:78)
    UnityEngine.Advertisements.Advertisement:Initialize(String, Boolean) (at /home/builduser/buildslave/com.unity.ads/package/Source/UnityAds/Advertisement.cs:229)
    UnityEngine.Advertisements.Advertisement:Load() (at /home/builduser/buildslave/com.unity.ads/package/Source/UnityAds/Advertisement.cs:73)
    UnityEngine.Advertisements.Advertisement:LoadEditor(String, Boolean) (at /home/builduser/buildslave/com.unity.ads/package/Source/UnityAds/Advertisement.cs:65)
    System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    System.Reflection.MethodBase:Invoke(Object, Object[])
    UnityEditor.Advertisements.UnityAdsEditor:EditorOnLoad() (at /home/builduser/buildslave/com.unity.ads/package/Source/UnityAdsEditor/UnityAdsEditor.cs:29)

    (Filename: /home/builduser/buildslave/com.unity.ads/package/Source/UnityAds/Editor/Platform.cs Line: 78)

    Refreshing native plugins compatible for Editor in 0.53 ms, found 0 plugins.
    Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2019.2.3f1/Editor/Data/Mono/lib/libc
    Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2019.2.3f1/Editor/Data/Mono/lib/libc.dll
    Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2019.2.3f1/Editor/Data/Mono/lib/libc
    Loaded scene 'Temp/__Backupscenes/0.backup'
    Deserialize: 247.913 ms
    Integration: 271.398 ms
    Integration of assets: 0.917 ms
    Thread Wait Time: 10.253 ms
    Total Operation Time: 530.481 ms
    UnityMonetizationEditor: Initialize(2873201, False);
    UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:Log(Object)
    UnityEngine.Monetization.Platform:Initialize(String, Boolean)
    UnityEngine.Monetization.Monetization:Initialize(String, Boolean)
    AdManager:Start() (at Assets\Scripts\AdManager.cs:19)

    (Filename: Assets/Scripts/AdManager.cs Line: 19)

    Unloading 66 Unused Serialized files (Serialized files now loaded: 0)
    System memory in use before: 100.6 MB.
    System memory in use after: 100.6 MB.

    Unloading 35 unused Assets to reduce memory usage. Loaded Objects now: 1905.
    Total: 7.988808 ms (FindLiveObjects: 0.359360 ms CreateObjectMapping: 0.025280 ms MarkObjects: 7.481927 ms DeleteObjects: 0.120960 ms)

    gi::BakeBackendSwitch: Clear() active clients.
    gi::BakeBackendSwitch: switching bake backend from 3 to 0.
    LightmapEditorSettings: switching bake backend from 1 to 0.
    Unloading 60 Unused Serialized files (Serialized files now loaded: 0)
    Loaded scene 'Temp/__Backupscenes/0.backup'
    Deserialize: 6.164 ms
    Integration: 6.051 ms
    Integration of assets: 0.004 ms
    Thread Wait Time: 12.388 ms
    Total Operation Time: 24.607 ms
    System memory in use before: 84.1 MB.
    System memory in use after: 84.2 MB.

    Unloading 58 unused Assets to reduce memory usage. Loaded Objects now: 1884.
    Total: 8.263368 ms (FindLiveObjects: 0.355520 ms CreateObjectMapping: 0.026240 ms MarkObjects: 7.843528 ms DeleteObjects: 0.037440 ms)

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    <RI> Initialized touch support.

    WARNING: Shader Unsupported: 'Hidden/VideoDecodeOSX' - Pass 'Flip_RGBARect_To_RGBA' has no vertex shader
    WARNING: Shader Unsupported: 'Hidden/VideoDecodeOSX' - Setting to default shader.
    WARNING: Shader Unsupported: 'Hidden/VideoDecodeAndroid' - Pass 'RGBAExternal_To_RGBA' has no vertex shader
    WARNING: Shader Unsupported: 'Hidden/VideoDecodeAndroid' - Setting to default shader.
    WARNING: Shader Unsupported: 'Hidden/VideoDecodeML' - Pass 'RGBAExternal_To_RGBA' has no vertex shader
    WARNING: Shader Unsupported: 'Hidden/VideoDecodeML' - Setting to default shader.
    Updating ProjectSettings/ProjectSettings.asset - GUID: 00000000000000004000000000000000...
    done. [Time: 24.850584 ms]
    Updating ProjectSettings/UnityConnectSettings.asset - GUID: 0000000000000000a100000000000000...
    done. [Time: 10.038410 ms]
    Refreshing native plugins compatible for Editor in 0.48 ms, found 0 plugins.
    Preloading 0 native plugins for Editor in 0.00 ms.
    Android PostProcess task "Checking prerequisites" took 11.5927 ms
    Android PostProcess task "Detect Java Development Kit (JDK)" took 103.4564 ms
    AndroidSDKTools:

    root : C:/SDK
    tools : C:/SDK\tools
    platform-tools: C:/SDK\platform-tools
    build-tools : C:/SDK\build-tools\29.0.2

    adb : C:/SDK\platform-tools\adb.exe

    Android PostProcess task "Detecting Android SDK" took 1351.9549 ms
    Android PostProcess task "Detect Android NDK" took 0.1031 ms
    Android PostProcess task "Trying to find a suitable Android device" took 0.3187 ms
    [ScriptCompilation] Recompiling all scripts because: Recompiling scripts for player build.
    BuildPlayer: start building target 13
    - Starting compile Library/ScriptAssemblies/UnityEngine.TestRunner.dll
    - Starting compile Library/ScriptAssemblies/UnityEngine.UI.dll
    - Finished compile Library/ScriptAssemblies/UnityEngine.TestRunner.dll
    - Finished compile Library/ScriptAssemblies/UnityEngine.UI.dll
    - Starting compile Library/ScriptAssemblies/Unity.TextMeshPro.dll
    - Starting compile Library/ScriptAssemblies/Unity.Timeline.dll
    - Finished compile Library/ScriptAssemblies/Unity.Timeline.dll
    - Finished compile Library/ScriptAssemblies/Unity.TextMeshPro.dll
    - Starting compile Library/ScriptAssemblies/Assembly-CSharp.dll
    - Finished compile Library/ScriptAssemblies/Assembly-CSharp.dll
    Assets\Scripts\SoundManager.cs(18,22): warning CS0649: Field 'SoundManager.jump' is never assigned to, and will always have its default value null
    Assets\Scripts\ScoreManager.cs(10,21): warning CS0649: Field 'ScoreManager.currentScoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\GameManager.cs(12,21): warning CS0649: Field 'GameManager.scoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\SoundManager.cs(18,15): warning CS0649: Field 'SoundManager.death' is never assigned to, and will always have its default value null
    Assets\Scripts\GameManager.cs(12,32): warning CS0649: Field 'GameManager.bestScoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\SoundManager.cs(16,17): warning CS0649: Field 'SoundManager.source' is never assigned to, and will always have its default value null
    Assets\Scripts\StairSpawner.cs(8,16): warning CS0649: Field 'StairSpawner.stairPrefab' is never assigned to, and will always have its default value null
    Assets\Scripts\ScoreManager.cs(10,39): warning CS0649: Field 'ScoreManager.bestScoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\Player.cs(12,17): warning CS0414: The field 'Player.deathCount' is assigned but its value is never used
    Opening scene 'Temp/__Backupscenes/0.backup'
    LightmapEditorSettings: switching bake backend from 1 to 0.
    Unloading 43 Unused Serialized files (Serialized files now loaded: 0)
    Loaded scene 'Temp/__Backupscenes/0.backup'
    Deserialize: 2.376 ms
    Integration: 6.170 ms
    Integration of assets: 0.004 ms
    Thread Wait Time: 17.548 ms
    Total Operation Time: 26.098 ms
    System memory in use before: 99.0 MB.
    System memory in use after: 86.5 MB.

    Unloading 98 unused Assets to reduce memory usage. Loaded Objects now: 1977.
    Total: 20.794260 ms (FindLiveObjects: 0.438400 ms CreateObjectMapping: 0.038720 ms MarkObjects: 13.874893 ms DeleteObjects: 6.441606 ms)



    Mono dependencies included in the build
    Dependency assembly - UnityEngine.Advertisements.Android.dll
    Dependency assembly - UnityEngine.Monetization.Android.dll
    Dependency assembly - System.Diagnostics.StackTrace.dll
    Dependency assembly - System.Globalization.Extensions.dll
    Dependency assembly - System.Runtime.Serialization.Xml.dll
    Dependency assembly - System.Xml.XPath.XDocument.dll
    Dependency assembly - netstandard.dll
    Dependency assembly - Mono.Security.dll
    Dependency assembly - System.ComponentModel.Composition.dll
    Dependency assembly - System.Configuration.dll
    Dependency assembly - System.Core.dll
    Dependency assembly - System.Data.dll
    Dependency assembly - System.Drawing.dll
    Dependency assembly - System.EnterpriseServices.dll
    Dependency assembly - System.IO.Compression.FileSystem.dll
    Dependency assembly - System.IO.Compression.dll
    Dependency assembly - System.Net.Http.dll
    Dependency assembly - System.Numerics.dll
    Dependency assembly - System.Runtime.Serialization.dll
    Dependency assembly - System.ServiceModel.Internals.dll
    Dependency assembly - System.Transactions.dll
    Dependency assembly - System.Xml.Linq.dll
    Dependency assembly - System.Xml.dll
    Dependency assembly - System.dll
    Dependency assembly - mscorlib.dll
    Dependency assembly - Assembly-CSharp.dll
    Dependency assembly - Unity.TextMeshPro.dll
    Dependency assembly - Unity.Timeline.dll
    Dependency assembly - UnityEngine.UI.dll

    Unloading 44 Unused Serialized files (Serialized files now loaded: 0)
    System memory in use before: 92.0 MB.
    System memory in use after: 79.0 MB.

    Unloading 88 unused Assets to reduce memory usage. Loaded Objects now: 1848.
    Total: 11.492491 ms (FindLiveObjects: 0.365120 ms CreateObjectMapping: 0.027520 ms MarkObjects: 9.281609 ms DeleteObjects: 1.817282 ms)

    [EnlightenBakeManager] m_Clear = false;
    Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
    System memory in use before: 76.6 MB.
    System memory in use after: 76.7 MB.

    Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 1872.
    Total: 10.495690 ms (FindLiveObjects: 0.486720 ms CreateObjectMapping: 0.035200 ms MarkObjects: 9.963530 ms DeleteObjects: 0.008960 ms)

    WARNING: Shader Unsupported: 'AR/TangoARRender' - Pass '' has no vertex shader
    WARNING: Shader Unsupported: 'AR/TangoARRender' - Setting to default shader.
    Unloading 1 Unused Serialized files (Serialized files now loaded: 0)
    System memory in use before: 170.7 MB.
    System memory in use after: 77.2 MB.

    Unloading 158 unused Assets to reduce memory usage. Loaded Objects now: 1849.
    Total: 39.961318 ms (FindLiveObjects: 0.552001 ms CreateObjectMapping: 0.035200 ms MarkObjects: 10.720970 ms DeleteObjects: 28.651868 ms)

    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.05 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.05 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    Launched and connected shader compiler UnityShaderCompiler.exe after 0.05 seconds
    Uploading Crash Report
    ArgumentNullException: Value cannot be null.
    Parameter name: path1
    at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in <599589bf4ce248909b8a14cbe4a2034e>:0
    at UnityEditor.Utils.Paths.Combine (System.String[] components) [0x00024] in C:\buildslave\unity\build\Editor\Mono\Utils\Paths.cs:29
    at UnityEditor.Android.AndroidGradleRoot.GetGradleLaunchJarPath (System.String directory) [0x00001] in <5557b445b4634c46b2ec8376c040bd34>:0
    at UnityEditor.Android.GradleWrapper.GetBaseCommand (System.Int32 jvmHeapSize) [0x0000b] in <5557b445b4634c46b2ec8376c040bd34>:0
    at UnityEditor.Android.PostProcessAndroidPlayer.ExecuteWarmup (System.String stagingArea) [0x0007a] in <5557b445b4634c46b2ec8376c040bd34>:0
    at UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) [0x000c4] in <5557b445b4634c46b2ec8376c040bd34>:0
    at UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) [0x00001] in <5557b445b4634c46b2ec8376c040bd34>:0
    at UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) [0x000da] in C:\buildslave\unity\build\Editor\Mono\BuildPipeline\PostprocessBuildPlayer.cs:281
    UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
    UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:169)
    UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95)
    UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:896)
    UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:786)
    UnityEditor.BuildPlayerWindow:OnGUI() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:358)
    System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    System.Reflection.MethodBase:Invoke(Object, Object[])
    UnityEditor.HostView:Invoke(String, Object) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:359)
    UnityEditor.HostView:Invoke(String) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:353)
    UnityEditor.HostView:OldOnGUI() (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:138)
    UnityEngine.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean, Rect) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:281)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:483)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:466)
    UnityEngine.UIElements.IMGUIContainer:HandleEvent(EventBase) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:447)
    UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\Events\MouseCaptureDispatchingStrategy.cs:93)
    UnityEngine.UIElements.EventDispatcher:processEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:280)
    UnityEngine.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:156)
    UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\Panel.cs:190)
    UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:255)
    UnityEngine.UIElements.UIElementsUtility:processEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:78)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\IMGUI\GUIUtility.cs:179)

    (Filename: <599589bf4ce248909b8a14cbe4a2034e> Line: 0)

    Unloading 21 Unused Serialized files (Serialized files now loaded: 0)
    System memory in use before: 79.1 MB.
    System memory in use after: 78.5 MB.

    Unloading 59 unused Assets to reduce memory usage. Loaded Objects now: 1894.
    Total: 11.601291 ms (FindLiveObjects: 0.397760 ms CreateObjectMapping: 0.027520 ms MarkObjects: 10.548810 ms DeleteObjects: 0.626241 ms)

    LightmapEditorSettings: switching bake backend from 1 to 0.
    Unloading 3 Unused Serialized files (Serialized files now loaded: 0)
    Loaded scene 'Temp/__Backupscenes/0.backup'
    Deserialize: 5.693 ms
    Integration: 12.956 ms
    Integration of assets: 1.184 ms
    Thread Wait Time: 14.162 ms
    Total Operation Time: 33.995 ms
    System memory in use before: 77.6 MB.
    System memory in use after: 77.7 MB.

    Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 1998.
    Total: 11.651851 ms (FindLiveObjects: 0.379520 ms CreateObjectMapping: 0.026880 ms MarkObjects: 11.233931 ms DeleteObjects: 0.010880 ms)

    [ScriptCompilation] Recompiling all scripts because: Recompiling scripts for editor after player build.
    - Starting compile Library/ScriptAssemblies/UnityEngine.TestRunner.dll
    - Starting compile Library/ScriptAssemblies/UnityEngine.UI.dll
    - Finished compile Library/ScriptAssemblies/UnityEngine.TestRunner.dll
    - Starting compile Library/ScriptAssemblies/UnityEditor.TestRunner.dll
    - Finished compile Library/ScriptAssemblies/UnityEngine.UI.dll
    - Finished compile Library/ScriptAssemblies/UnityEditor.TestRunner.dll
    - Starting compile Library/ScriptAssemblies/UnityEditor.UI.dll
    - Starting compile Library/ScriptAssemblies/Unity.2D.Tilemap.Editor.dll
    - Finished compile Library/ScriptAssemblies/UnityEditor.UI.dll
    - Finished compile Library/ScriptAssemblies/Unity.2D.Tilemap.Editor.dll
    - Starting compile Library/ScriptAssemblies/Unity.TextMeshPro.dll
    - Starting compile Library/ScriptAssemblies/Unity.Timeline.dll
    - Starting compile Library/ScriptAssemblies/Unity.2D.Sprite.Editor.dll
    - Starting compile Library/ScriptAssemblies/Unity.CollabProxy.Editor.dll
    - Starting compile Library/ScriptAssemblies/Unity.VSCode.Editor.dll
    - Starting compile Library/ScriptAssemblies/Unity.Rider.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.Timeline.dll
    - Starting compile Library/ScriptAssemblies/Unity.Timeline.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.CollabProxy.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.VSCode.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.2D.Sprite.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.Rider.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.TextMeshPro.dll
    - Starting compile Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.Timeline.Editor.dll
    - Finished compile Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll
    - Starting compile Library/ScriptAssemblies/Assembly-CSharp.dll
    - Finished compile Library/ScriptAssemblies/Assembly-CSharp.dll
    Assets\Scripts\ScoreManager.cs(10,21): warning CS0649: Field 'ScoreManager.currentScoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\ScoreManager.cs(10,39): warning CS0649: Field 'ScoreManager.bestScoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\GameManager.cs(12,21): warning CS0649: Field 'GameManager.scoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\SoundManager.cs(18,15): warning CS0649: Field 'SoundManager.death' is never assigned to, and will always have its default value null
    Assets\Scripts\StairSpawner.cs(8,16): warning CS0649: Field 'StairSpawner.stairPrefab' is never assigned to, and will always have its default value null
    Assets\Scripts\SoundManager.cs(18,22): warning CS0649: Field 'SoundManager.jump' is never assigned to, and will always have its default value null
    Assets\Scripts\GameManager.cs(12,32): warning CS0649: Field 'GameManager.bestScoreText' is never assigned to, and will always have its default value null
    Assets\Scripts\SoundManager.cs(16,17): warning CS0649: Field 'SoundManager.source' is never assigned to, and will always have its default value null
    Assets\Scripts\Player.cs(12,17): warning CS0414: The field 'Player.deathCount' is assigned but its value is never used
    Build completed with a result of 'Failed'
    UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:LogError(Object)
    UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:189)
    UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95)
    UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:896)
    UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:786)
    UnityEditor.BuildPlayerWindow:OnGUI() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:358)
    System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    System.Reflection.MethodBase:Invoke(Object, Object[])
    UnityEditor.HostView:Invoke(String, Object) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:359)
    UnityEditor.HostView:Invoke(String) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:353)
    UnityEditor.HostView:OldOnGUI() (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:138)
    UnityEngine.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean, Rect) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:281)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:483)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:466)
    UnityEngine.UIElements.IMGUIContainer:HandleEvent(EventBase) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:447)
    UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\Events\MouseCaptureDispatchingStrategy.cs:93)
    UnityEngine.UIElements.EventDispatcher:processEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:280)
    UnityEngine.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:156)
    UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\Panel.cs:190)
    UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:255)
    UnityEngine.UIElements.UIElementsUtility:processEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:78)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\IMGUI\GUIUtility.cs:179)

    (Filename: C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 189)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95
    UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:LogError(Object)
    UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:100)
    UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:896)
    UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:786)
    UnityEditor.BuildPlayerWindow:OnGUI() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:358)
    System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    System.Reflection.MethodBase:Invoke(Object, Object[])
    UnityEditor.HostView:Invoke(String, Object) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:359)
    UnityEditor.HostView:Invoke(String) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:353)
    UnityEditor.HostView:OldOnGUI() (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:138)
    UnityEngine.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean, Rect) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:281)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:483)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:466)
    UnityEngine.UIElements.IMGUIContainer:HandleEvent(EventBase) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:447)
    UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\Events\MouseCaptureDispatchingStrategy.cs:93)
    UnityEngine.UIElements.EventDispatcher:processEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:280)
    UnityEngine.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:156)
    UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode) (at C:\buildslave\unity\build\Modules\UIElements\Panel.cs:190)
    UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:255)
    UnityEngine.UIElements.UIElementsUtility:processEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:78)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\IMGUI\GUIUtility.cs:179)

    (Filename: C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 100)
     
  2. vitaliy_unity520

    vitaliy_unity520

    Joined:
    Jan 23, 2019
    Posts:
    2
    @kavoogames did u resolved this issue? I also faced with it:(
     
  3. KeyZy

    KeyZy

    Joined:
    May 3, 2019
    Posts:
    1
    I found what's the problem (Windows 10) and solve it.

    In the Unity editor directory (Unity\2019.2.14f1\Editor\Data\Tools\RoslynScripts 2019.2.14f1 it's my version) you need modify file unity_csc.bat

    replace this
    "%APPLICATION_CONTENTS%\Tools\Roslyn\csc" /shared %*

    on this
    "%APPLICATION_CONTENTS%\Tools\Roslyn\csc.exe" /shared %*
     
  4. vitaliy_unity520

    vitaliy_unity520

    Joined:
    Jan 23, 2019
    Posts:
    2
    Thanks, for the response. But I've already fixed issue by enabling next checkbox
    Edit->Preferences->External Tool->Gradle Installed with Unity
     
    dm_bond and KeyZy like this.
  5. simon_unity548

    simon_unity548

    Joined:
    Sep 20, 2021
    Posts:
    1
    I cant seem to find that directory with Unity 2021.3.12f1 how would i fix this?
     
  6. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,726
    How to troubleshoot build failures:

    First, make a blank project with a single blank scene and prove that it builds successfully.

    If the blank project does NOT build, go fix your Unity installation or your other tools, such as Android SDK, NDK, JDK, etc. It may even be necessary to change to a different version of Unity3D. It is generally best to stay with LTS versions of Unity3D.

    Until you can build a blank project to the target platform, don't fiddle with anything else.

    Once you can build a blank project, now bisect the problem by bringing over parts of your current project and building it one subsystem at a time, perhaps stubbing things out that might trigger compiler errors.

    Most often things that prevent building are third-party libraries such as Firebase.

    Once you identify the subsystem, go to the documentation for it and make sure you are doing it correctly.

    It may also be helpful to work through a tutorial or two for whatever subsystem is making the build fail.

    Android build not building:

    Recently (circa July 2022) there have been reports of Unity's installer failing to install the Android Tools.

    https://forum.unity.com/threads/cant-build-for-android.1306098/

    Here was how I brought up Unity2020.3.41 and the Android SDK 31 on October 30, 2022:

    https://forum.unity.com/threads/aab...y-2021-3-8-with-jdk-1-8.1322211/#post-8551193

    Android Gradle errors and other related stuff:

    https://forum.unity.com/threads/unity-gradle-bug-please-help.1368018/#post-8625789