Search Unity

Please Heeeeeelp!!!!!! Can't get .aab build because of Gradle error

Discussion in 'Android' started by ferhatdemir2049, May 16, 2022.

  1. ferhatdemir2049

    ferhatdemir2049

    Joined:
    May 13, 2022
    Posts:
    7
    Hey everyone. So I'm trying to get a build for my game on android. I had no problem getting .apk builds but when I tried to get .aab builds to put on the Playstore



    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 <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <fc7be335e11c4872b360501993848bfb>: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 <fc7be335e11c4872b360501993848bfb>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <fc7be335e11c4872b360501993848bfb>: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 <bbfbd5a71eea45d1a1354233c800516b>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,900
    In similar posts, the issue was with gradle templates set in your project. If you have some, you might need to update them.
     
    ferhatdemir2049 likes this.
  3. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,963
    Do you have any custom gradle files enabled? If so share your gradle files and unity version.
     
    ferhatdemir2049 likes this.
  4. ferhatdemir2049

    ferhatdemir2049

    Joined:
    May 13, 2022
    Posts:
    7

    unity version -> 2020.3.24f1

    grandle file -> baseProjectTemplate

    classpath 'com.android.tools.build:gradle:3.4.3'
     
  5. ferhatdemir2049

    ferhatdemir2049

    Joined:
    May 13, 2022
    Posts:
    7
    unity version -> 2020.3.24f1

    grandle file -> baseProjectTemplate

    classpath 'com.android.tools.build:gradle:3.4.3'