'Android Studio build.gradle issues

My gradle project sync keeps failing. "Plugin [id: 'com.android.application', version: '7.1.1', apply: false] was not found in any of the following sources:"

  • Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.application', version: '7.1.1', apply: false] was not found in any of the following sources:

I am on the latest version of Android Studio, and have tried updating everything on Android Studio. I do not know what the problem is but I think it is something with what I am running on my computer. People in my group are able to clone the same repository through git and run this through Android Studio without this issue, but I am not.

This happens for every project I create. I tried creating the most basic project in Android Studio and it still gives me this error.[enter image description here][1]

Here is a screenshot: [1]: https://i.stack.imgur.com/BqqGv.png



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source