title: Android gradle build fails even for new projects
body: <p>After updating Android Studio (to 3.2.1), Build Tools (28.0.3), SDK, and Gradle (to 5.0) all tries for building an app fail. Even with new projects.
  This is the error I get when I run <code>./gradlew clean</code> in Android Studio's terminal:</p>
  
  <blockquote>
    <p>Could not get resource '<a href="https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom</a>'.</p>
  </blockquote>
  
  <p><strong>However, I am able to download and open all these files and the internet connection has no problem or proxies</strong></p>
  
  <p>Here is the app Gradle file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 27
      buildToolsVersion '28.0.3'
      defaultConfig {
          applicationId "ir.ddtapp.acepte"
          minSdkVersion 21
          targetSdkVersion 27
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      dataBinding {
          enabled = true
      }
  }
  dependencies {
      implementation fileTree(include: ['*.jar'], dir: 'libs')
      implementation 'com.android.support:appcompat-v7:27.1.1'
      implementation 'com.android.support:design:27.1.1'
  }
  </code></pre>
  
  <p>And the project's Gradle file :</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          google()
          jcenter()
          maven { url 'https://jitpack.io' }
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.2.1'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          maven { url 'https://jitpack.io' }
  
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>And Gradle Wrapper :</p>
  
  <pre><code>#Thu Nov 22 19:38:06 AEDT 2018
  distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip
  </code></pre>
  
  <p>And Gradle properties :</p>
  
  <pre><code>org.gradle.jvmargs=-Xmx1536m
  
  org.gradle.warning.mode=all
  </code></pre>