title: Cannot resolve DefaultManifestParser after gradle plugin upgrade
body: <p>I'm trying to compile <a href="https://github.com/ennswi/AndroidCaldavSyncAdapater" rel="nofollow noreferrer">AndroidCaldavSyncAdapter</a> project in Android Studio. It has even worked before, but after upgrade gradle plugin version from <code>com.android.tools.build:gradle:1.5.0</code> to <code>com.android.tools.build:gradle:2.3.0</code> it stopped working. Now I'm getting this error:</p>
  
  <pre><code>  Error:(34, 0) A problem occurred evaluating project ':ACalDAV'.
  </code></pre>
  
  <p></p>
  
  <p>and
      <code>cannot resolve symbol 'builder'</code> in</p>
  
  <pre><code>import com.android.builder.core.DefaultManifestParser
  </code></pre>
  
  <p>Here is the <code>build.grade</code> file:</p>
  
  <pre><code>import com.android.builder.core.DefaultManifestParser
  
  apply plugin: 'com.android.application'
  apply from: '../config/quality/quality.gradle'
  
  android {
      compileSdkVersion 22
      buildToolsVersion '25.0.3'
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_7
          targetCompatibility JavaVersion.VERSION_1_7
      }
  
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              resources.srcDirs = ['src']
              aidl.srcDirs = ['src']
              renderscript.srcDirs = ['src']
              res.srcDirs = ['res']
              assets.srcDirs = ['assets']
          }
  
      }
  
      defaultConfig {
          applicationId "de.we.acaldav"
          minSdkVersion 14
          targetSdkVersion 20
          multiDexEnabled true
  
          def manifestParser = new DefaultManifestParser()
          versionName = manifestParser.getVersionName(android.sourceSets.main.manifest.srcFile)
      }
  
      signingConfigs {
          //noinspection GroovyMissingReturnStatement
          release {
              if (project.hasProperty('myKeyAlias') &amp;&amp;
                      project.hasProperty('myStoreFile') &amp;&amp;
                      project.hasProperty('myStorePassword') &amp;&amp;
                      project.hasProperty('myKeyPassword')) {
                  keyAlias = myKeyAlias
                  storeFile = file(myStoreFile)
                  storePassword = myStorePassword
                  keyPassword = myKeyPassword
              }
          }
      }
  
      buildTypes {
  
          release {
              minifyEnabled true
              signingConfig signingConfigs.release
              proguardFile 'proguard-project.txt'
          }
  
          debug {
              //noinspection GroovyAssignabilityCheck
              applicationIdSuffix = ".debug"
              //noinspection GroovyAssignabilityCheck
              versionNameSuffix = "-DEBUG"
          }
  
          //noinspection GroovyAssignabilityCheck
          applicationVariants.all { variant -&gt;
              variant.outputs.each { output -&gt;
                  output.outputFile = new File(output.outputFile.parent, output.outputFile.name.replace(".apk", "-" + defaultConfig.versionName + ".apk"))
              }
          }
      }
  
      packagingOptions {
          exclude 'META-INF/LICENSE.txt'
          exclude 'META-INF/NOTICE.txt'
      }
  
  }
  
  dependencies {
      compile  'com.android.support:support-v4:22.0.0'
      compile  'backport-util-concurrent:backport-util-concurrent:3.1'
      compile  'commons-codec:commons-codec:1.10'
      compile  'org.apache.commons:commons-lang3:3.3.2'
      compile  'org.mnode.ical4j:ical4j:1.0.6'
      repositories {
          mavenCentral()
      }
  }
  
  buildscript {
      repositories {
          mavenCentral()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.0'
      }
  }
  </code></pre>
  
  <p>I have tried invalidate caches but this hasn't change anything. </p>