Can't Package Gradle

I can’t package my project, this error is showing up: PackagingResults: Error: cmd.exe failed with args /c “C:\Users\szund\Documents\Unreal Projects\RealTimeTest\Intermediate/Android/APK\gradle\rungradle.bat” :app:assembleDebug

I know that the error goes away if you turn of ‘Enable Gradle instead of Ant’ but unfortunately it has to stay on.
I use a plugin that needs Gradle.

Below this message you will also see my SDK software.

Please help me!

thats a lot of sdk/api lol. For your quote
“‘Enable Gradle instead of Ant’ but unfortunately it has to stay on. I use a plugin that needs Gradle.”

That check box means use gradle, not ant. Did you mean to say you need ant?

What you included is not really enough to help.

I’m not exactly sure what was going on but I had a lot of problems with Gradle. In 4.21 everything just worked again, had no more problems.
Because this problem has been solved I am going to close this question and mark this answer as correct.