ERROR: AutomationTool terminated with exception: ERROR: cmd.exe failed with args /c "C://apache-ant-1.8.2/bin/ant.bat" debug

So I was making a game for android and in order to test it I decided to launch it on my Redmi Note 3 . So I clicked Mobile Preview (PIE) and then clicked launch. After some time later Launch failed. After checking the log I saw messages like -
1.“ERROR: AutomationTool terminated with exception: ERROR: cmd.exe failed with args /c “C://apache-ant-1.8.2/bin/ant.bat” debug”
2.“AutomationTool exiting with ExitCode=1 (Error_Unknown)”
3." BUILD FAILED"
4.“PackagingResults:Error: Error Launch failed! Unknown Error”

In the bottom. So I searched for all of these problems one by one and there were a lot of suggestions like update SDK build tools, platform tools, Install Editor Symbols for Debugging (I already had them, but I still re-installed them) and tried every weird suggestions but still these messages show up…

[link text][3]

Hey Kalpit,

Please open the SDK Manager in “C:\android-sdk-windows” and dowload all Tools. After that you should be able to build your project.

Let us me know otherwise -