title: how to import googlesource projects in to Android Studio?
body: <p>I'm new to Gradle and Android Studio and I've been struggling to import any of the projects under <a href="https://android.googlesource.com/platform/packages/apps/" rel="nofollow">https://android.googlesource.com/platform/packages/apps/</a> in to AS and successfully run it on my dev device. I'm trying to get the Launcher3 running and I get all kinds of different errors. I think I'm missing some major parts on how to configure the studio and Gradle maybe? </p>
  
  <p>What is the proper procedure? 
  I installed Latest Gradle and AS. Cloned the project from Git. Imported to AS and then I get errors like this or that version of Gradle is required, main activity cant be found, gradle plugin can't be found etc. Tried changing Gradle version in config file. Tried setting my local Gradle download in build settings etc. </p>
  
  <p>Cheers,
  Hamed </p>
  
  <p>Update:
  I changed the version to 2.1.2 here:</p>
  
  <pre><code>dependencies {
          classpath 'com.android.tools.build:gradle:2.1.2'
          classpath 'com.google.protobuf:protobuf-gradle-plugin:2.1.2'
      }
  </code></pre>
  
  <p>and currently I get the error:</p>
  
  <pre><code>Error:Could not find com.google.protobuf:protobuf-gradle-plugin:2.1.2.
  Searched in the following locations:
      file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/google/protobuf/protobuf-gradle-plugin/2.1.2/protobuf-gradle-plugin-2.1.2.pom
      file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/google/protobuf/protobuf-gradle-plugin/2.1.2/protobuf-gradle-plugin-2.1.2.jar
      https://repo1.maven.org/maven2/com/google/protobuf/protobuf-gradle-plugin/2.1.2/protobuf-gradle-plugin-2.1.2.pom
      https://repo1.maven.org/maven2/com/google/protobuf/protobuf-gradle-plugin/2.1.2/protobuf-gradle-plugin-2.1.2.jar
  Required by:
      :Launcher3:unspecified
  </code></pre>