title: I get an error after importing a project into Android Studio
body: <p>Followed the steps in <a href="http://developer.android.com/samples/index.html" rel="nofollow noreferrer">http://developer.android.com/samples/index.html</a>, I imported repeatingAlarm (<a href="http://developer.android.com/samples/repeatingAlarm/project.html" rel="nofollow noreferrer">http://developer.android.com/samples/repeatingAlarm/project.html</a>) project into Android Studio. Unfortunately, I get an error below:</p>
  
  <p>Failed to refresh Gradle project 'repeatingAlarm'
              The project is using an unsupported version of the Android Gradle plug-in (0.6.3).
              Fix plug-in version and re-import project
  Quick Fix Failed
              Unable to find any references to the Android Gradle plug-in in build.gradle files.
              Please click the link to perform a textual search and then update the build files manually.</p>
  
  <p>Here below is the build.gradle file:</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:0.6.+'
      }
  }
  
  apply plugin: 'android'
  
  dependencies {
      // Add the support lib that is appropriate for SDK 4
      compile "com.android.support:support-v4:18.0.+"
  }
  
  // The sample build uses multiple directories to
  // keep boilerplate and common code separate from
  // the main sample code.
  List&lt;String&gt; dirs = [
          'main',     // main sample code; look here for the interesting stuff.
          'common',   // components that are reused by multiple samples
          'template'] // boilerplate code that is generated by the sample template process
  
  android {
      compileSdkVersion 19
      buildToolsVersion "18.0.1"
  
      sourceSets {
          main {
              dirs.each { dir -&gt;
                  java.srcDirs "src/${dir}/java"
                  res.srcDirs "src/${dir}/res"
              }
          }
          instrumentTest.setRoot('tests')
          instrumentTest.java.srcDirs = ['tests/src']
      }
  }
  </code></pre>
  
  <p>And here the IDE told me an error like this:
  <img src="https://i.stack.imgur.com/3iQcR.jpg" alt="enter image description here">
  What am I supposed to do?</p>