title: Gradle doesn't sync in Android Studio
body: <p>I'm new to Android studio and I'm trying to set up a new project but I face this error message:</p>
  <pre><code>Could not find com.android.tools.build:gradle:7.0.4.
  Searched in the following locations:
    - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.0.4/gradle-7.0.4.pom
    - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.0.4/gradle-7.0.4.pom
  Required by:
      project :
  Add google Maven repository and sync project
  Open File
  </code></pre>
  <p>I searched the Gradle website and found out 7.0.4 which was set on my Android studio by default, does not exist in the official repository.
  So I downloaded another version (7.4.1) and changed the version in the <code>build.gradle</code> file but it didn't solve the problem. I downloaded Gradle by using the <code>gradle-wrapper.properties</code> file and it still doesn't work. Then I tried to use the gradle plugin offline by turning on the offline mode and changing the location in <code>file &gt; settings &gt; Build, Execution, Deployment &gt; Build tools &gt; Gradle</code> and it shows me this error message:</p>
  <pre><code>A problem occurred configuring root project 'My Application'.
  &gt; Could not resolve all files for configuration ':classpath'.
     &gt; Could not resolve com.android.tools.build:gradle:7.4.1.
       Required by:
           project :
        &gt; No cached version of com.android.tools.build:gradle:7.4.1 available for offline mode.
        &gt; No cached version of com.android.tools.build:gradle:7.4.1 available for offline mode.
  
  Possible solution:
   - Disable offline mode and rerun the build
  </code></pre>
  <p>It seems that com.android.tools.build:gradle:7.4.1 is nowhere...
  I checked the version in <code>Project Structure...</code> and it's 7.4.1 exactly what it is supposed to be. My Android version is 2020.3.1.
  I'm stuck. How can I fix this? My project doesn't sync and I can't even start...</p>