Receiving gradle failures despite fresh installation of Android Studio

I have just freshly installed Android studio and created a project with a Simple activity. The project fails to build from the scratch with this error:

Configure project :
[Fatal Error] jimfs-1.1.pom:2:1: Content is not allowed in prolog.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘DataFlair To Do List’.

Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve
Required by:
project : > > > >
Could not resolve
Could not parse POM
Content is not allowed in prolog.

I read that there might be some latest updates with the URLs that will make Android fail, but I can’t find a solution to the issue and as I said, the build is failing off fresh installation of Android studio with no changes

I don’t really follow what’s going on in the Android ecosystem, but I have frequently seen Content is not allowed in prolog. due to bad proxy settings. If you have a proxy in your setup, double check that everything is working as expected there. The content that’s not allowed might be HTML from a proxy authentication page or similar instead of the contents of the requested POM file.