Build failed. Unknown error

I am packaging my android game and i am getting this error:

cmd.exe failed with args /c “C:\Users\Sanket\documents\unreal projects\AntiVirusGame_Project\Intermediate/Android/APK\gradle\rungradle.bat” : app: assembleDebug

AutomationTool exiting with exitcode=1
Build Failed
Unknown Error

If i chose Ant instead of gradle i get same error obv its about ant not gradle ofc.

Hi, have you tried this solution?

answerhub

Yes i have already tried that and there was no button or option to update my android support repositories. So it didn’t work. all tho i got it fixed by simply turning off gradle and distribution checkbox.