Gradle Build Failed(I hav Installed everything from Hub)

Hello,
I’m Dharshan. I hav installed Unity 2019.4.17f1 on 4 Jan, From Unity Hub. I have Installed Sdk and Jdk and Ndk with it to export Games to Android. Yesterday I tried to build a sample Project, while it building the gradle build, it fails and says “Gradle Build Failed, see the Console for Details”. The same issue I already got because I have Installed the Sdk from Internet. But this time I hav Installed it with Unity. I’m confused why this happening if I Installed it from Official Unity Hub. Please tell me the answer. Please anybody.

Hey, could you post the full error here? There are numerous Gradle errors that could be thrown, therefore knowing what exactly is the editor complaining about would be a good start!