How to Fix Android build Error : FileNotFoundException - Unity

 






To fix the build Error : " FileNotFoundException: Temp\gradleOut\launcher\build\outputs\bundle\release\launcher-release.aab does not exist ", do the following Steps :



Go to The menu , Select Assets > Preferences > External Tools , and check Gradle installed with unity . 

Now you can Build your game .

if it not work  Download the Gradle Files from Here .

  • NOTE  1 : To know  the gradle compatible with your Unity Editor version read this Documentation  .
  • NOTE 2 :  know how to Customize The "  Plugin version "  to be compatible with the "gradle version " downloaded Click Here .


Select The gradle from the lit like in this image :


Go to your disc Folder and create a new Folder  " Android Studio Gradle " :


copy the file downloaded and past and Extract it in this folder .

Now open Preferences Uncheck "gradle installed with unity " ,and click browse to select the folder for gradle downloaded .



Build your Game.

...


commandinvokationfailure: gradle build failed commandinvokationfailure: gradle build failed unity 2021 could not resolve com android tools build gradle:4.0 1 unity could not resolve all artifacts for configuration ':launcher classpath unity com android build gradle internal tasks workers actionfacade unity unity build without gradle building gradle project unity stuck using multiple versions of the android gradle plugin in the same build is not allowed unity  com android build gradle internal tasks workers actionfacade unity unity build without gradle building gradle project unity stuck using multiple versions of the android gradle plugin in the same build is not allowed unity commandinvokationfailure: gradle build failed commandinvokationfailure: gradle build failed unity 2021