title: Android Studio update -Error:Could not run build action using Gradle distribution
body: <p>I have recently updated android studio to the latest version,but then comes the problem.</p>
  
  <p><strong>Gradle 'MyApplication' project refresh failed.
  Error:Could not run build action using Gradle distribution '<a href="https://services.gradle.org/distributions/gradle-2.2.1-all.zip" rel="noreferrer">https://services.gradle.org/distributions/gradle-2.2.1-all.zip</a>'.</strong></p>
  
  <p>Found <a href="https://stackoverflow.com/questions/27357918/android-studio-1-0rc4-gradle-build-error">this</a> in StackOverflow</p>
  
  <p>However trying everything nothing works - cannot create new project of import anything at the moment.Please kindly advice.</p>
  
  <pre><code>  apply plugin: 'com.android.application'  
  
    android {
      compileSdkVersion 21
      buildToolsVersion "21.1.2"
  
       defaultConfig {
          applicationId "com.sclick.myapplication"
          minSdkVersion 14
          targetSdkVersion 21
          versionCode 1
          versionName "1.0"
      }
      task assemble{}
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:21.0.3'
  }
  
        **Top Level Gradle.build**
  </code></pre>
  
  <p>// Top-level build file where you can add configuration options common to all 
             sub-projects/modules.</p>
  
  <pre><code>      buildscript {
          repositories {
              jcenter()
          }
          dependencies {
              classpath 'com.android.tools.build:gradle:1.0.0'
  
              // NOTE: Do not place your application dependencies here; they belong
              // in the individual module build.gradle files
          }
      }
  
  
      allprojects {
          repositories {
              jcenter()
          }
      }
  </code></pre>
  
  <p><strong>gradle-wrapper.properties</strong></p>
  
  <pre><code>  #Wed Apr 10 15:27:10 PDT 2013
  distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
  </code></pre>