FileNotFoundException: Temp\gradleOut\launcher\build\outputs\bundle\release\launcher.aab does not exist
Does anyone have any idea why I get or how to fix this error:
FileNotFoundException: Temp\gradleOut\launcher\build\outputs\bundle\debug\launcher.aab does not exist
System.IO.File.Move (System.String sourceFileName, System.String destFileName) (at <fb001e01371b4adca20013e0ac763896>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <102ea0a8f6844066abf6a495b9136b2c>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <102ea0a8f6844066abf6a495b9136b2c>: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 <102ea0a8f6844066abf6a495b9136b2c>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <102ea0a8f6844066abf6a495b9136b2c>: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 <007193b7fa9c4ad1be5b26df6a654213>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
I am trying to build an Android App Bundle for publishing on Play Store, but the build is failing with the error mentioned above. I don't have any problem building an apk file. When I browse the location from the error, I see a launcher-release.aab file, but no launcher.aab file. It looks like somehow the naming of the file is wrong.
Using Unity 2019.4.11f1, with custom AndroidManifest.xml, custom Gradle Main Template and Launcher Gradle Template for Android 11, using External Dependency Manager and external Android SDK (updated) and Gradle 5.6.4
Answer by Evershifting · Oct 22, 2020 at 01:41 PM
@AugmentedSpaceAgency Hello there!
I've found a solution. You should do as they say here but instead of " classpath 'com.android.tools.build:gradle:3.6.0' " you should write "classpath 'com.android.tools.build:gradle:3.4.3' "
it works like a charm! $$anonymous$$any thanks.
worked for me too. why does that specific version work and not a later one?
I just used version from a working project of my pal (big thanks to him)
Huge Kudos! This worked for me as well, me and my mates are trying to make project for Uni with ARCore failed misarbly on Android Studio now moving to Unity atlease here people give working answers! Interesting though why what is suggested on google's KB article is not working...
Did not work for me. i am using UNity 2020.2.7 with gradle 6.7.
Answer by ltomov · Mar 09, 2021 at 04:48 PM
Another solution that doesn't require to change the gradle version: https://forum.unity.com/threads/bundle-release-launcher-aab-does-not-exist-2019-4-16f1.1025302/#post-6780950
Thank you very much! It really worked but in mycase I had to change launcher.aab with gradleOut.aab! The rest of the code worked flawlessly!
Answer by khanhabib · Nov 08, 2021 at 09:26 AM
Wow I go the Solution!! Just add the following files in Plugin Folder https://drive.google.com/drive/folders/1Fbosfmgn4f-bwWgkFAmOZPYjMOrDfsL5?usp=sharing