Search Unity

Help Resolving Android Bundle Build with FileNotFoundException Error

Discussion in 'Editor & General Support' started by Geoffc, Nov 4, 2021.

  1. Geoffc

    Geoffc

    Joined:
    Feb 4, 2013
    Posts:
    39
    I am using Unity 2021.1.23f1 and when I build for an android app bundle I get the following error.

    Any ideas on how to fix this would be great.

    FileNotFoundException: Temp\gradleOut\launcher\build\outputs\bundle\release\launcher-release.aab does not exist
    System.IO.File.Move (System.String sourceFileName, System.String destFileName) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <04b7ada17ece4f3da2133228ef06844e>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <04b7ada17ece4f3da2133228ef06844e>: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 <04b7ada17ece4f3da2133228ef06844e>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <04b7ada17ece4f3da2133228ef06844e>: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 <e5223edb04694b52843b330517542b33>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)