title: "Could not find method packageName()" Error in RC1 - Flavors do not compile
body: <p>The project which was built in the previous versions of <strong>Android Studio</strong> does not want to compile in the latest <strong>RC1.</strong> </p>
  
  <p>The project uses flavors and I keep getting message:</p>
  
  <blockquote>
    <p>Could not find method packageName() for arguments [org.XXYYZZ.apps] on GroupableProductFlavor_Decorated{name=english, minSdkVersion=null, targetSdkVersion=null, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptNdkModeEnabled=null, versionCode=null, versionName=null, applicationId=null, testApplicationId=null, testInstrumentationRunner=null, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=null, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}}.</p>
  </blockquote>
  
  <p>It seems that it breaks on the first flavor name as it's unable to use its method <code>packageName</code>. </p>
  
  <p>Gradle version is</p>
  
  <pre><code>dependencies {
          classpath 'com.android.tools.build:gradle:0.14.4'
      }
  }
  apply plugin: 'android'
  ...
  </code></pre>
  
  <p>What could be causing this error? Any ideas how to fix it?</p>