Unable to build APK file Unity 2019.4.18f1

I installed SDK, JDK & NDK from Unity Hub (2.4.2 version) but when I want to build apk file it brings that “Gradle is failed. See the console for details.” when I use scripting backend “Mono”.
And same when use IL2CPP.
I also installed Android Studio for SDK, Java for JDK but to no avail.

You have to be connected into the internet to successfully build apk for android. It seems downloading some resources.