title: Gradle is issuing an error "Could not create plugin of type 'AppPlugin'"
body: <p>I'm trying to create a simple android project with gradle. I work in a computer with Debian GNU/Linux 7 'wheezy'.</p>
  
  <p>I followed the recomendations in <a href="http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Differences-between-a-Project-and-a-Library-Project" rel="noreferrer">Gradle Plugin User Guide - Android Tools Project Site</a>, but it casts an error:</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * Where:
  Build file '/home/alex/Proyectos/MyLogin/build.gradle' line: 11
  
  * What went wrong:
  A problem occurred evaluating root project 'MyLogin'.
  &gt; Could not create plugin of type 'AppPlugin'.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  BUILD FAILED
  
  Total time: 4.817 secs
  </code></pre>
  
  <p>I followed the specifications:</p>
  
  <ul>
  <li>Gradle 1.9</li>
  <li>Plugin 0.7</li>
  <li>SDK    17+ (actually 19)</li>
  </ul>
  
  <p>I also started a project anew, and the results I showed were issued by the command <code>gradle tasks</code> as shown in the documentation.</p>
  
  <p>I also tried gradle 1.10, but the result is the same.</p>
  
  <p>Even <a href="https://stackoverflow.com/questions/16649668/gradle-errors-in-android-studio">this question</a> was not usefull, since it solved with 'upgrading' to gradle 1.6 (I understand that plugin 0.7 requires at least gradle 1.9).</p>
  
  <p>I tried this after failing with the same error in <strong>android-studio</strong> and <strong>IntelliJ Idea</strong>.</p>
  
  <p><strong>EDIT:</strong> I also tried with new projects in both IDEs, and got the same issue. But what most surprises me is that both IDEs use gradle 1.8 in their wrapped form. I tried to cinfigure both of them to use my local gradle install, but still the same issue.</p>
  
  <p>What am I doing wrong? Is it a bug? How can I avoid the problem?</p>
  
  <p>Please, help me.</p>
  
  <p><strong>EDIT:</strong> Here is my <code>build.gradle</code></p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.7.+'
      }
  }
  
  apply plugin: 'android'
  
  repositories {
      mavenCentral()
  }
  
  android {
      compileSdkVersion 14
      buildToolsVersion '19.0.1'
  
      defaultConfig {
          minSdkVersion 14
          targetSdkVersion 19
      }
  }
  
  sourceCompatibility = 1.6
  
  version = '0.1'
  
  dependencies {
      compile 'com.android.support:support-v4:18.0.0'
      //compile project(':core')
  }
  </code></pre>