I have a problem packaging my game. on gradle and jdk

i created a game and solved many problems before and i was packaging my game many times seccusefully and when i tried to install a plugin . Visual studio didnt want to work with ue4.19 so i downloaded ue4.21 and upgraded my project to this version but i had a problem 3 weeks ago
when i try to package my project . the packaging fail and show me this log "there’s 2 logs . one with “enable grandle instead of ant” checked and uncheked
i really tried everything i reinstalled codeworks 6 times and i deleted intermediat and build folders in the project and i updated android support repository on SDK tools and i tried many solutions but nothing work and i really need to publish my game but this error slowed me down around 3 weeks now
another thing :if i didnt find a solution at least i want to know how to make Visual Studio work with ue4.19 because i have an older version of the project and it needs to be compiled
Picture of the logs and my settings :Imgur: The magic of the Internet