title: Cannot add buildConfigField in productFlavors
body: <p>In my android{} section I tried to put two different build types for may free and paid app.</p>
  
  <p>Sadly I'm getting gradle error: </p>
  
  <blockquote>
    <p>Gradle 'android-Transport' project refresh failed: Build script error,
    unsupported Gradle DSL method found: 'buildConfigField()'!  Possible
    causes could be: - you are using Gradle version where the method is
    absent - you didn't apply Gradle plugin which provides the method - or
    there is a mistake in a build script</p>
  </blockquote>
  
  <p>This is my android{} section in gradle build:</p>
  
  <pre><code>android {
      compileSdkVersion 19
      buildToolsVersion "19.0.3"
  
      defaultConfig {
          minSdkVersion 10
          targetSdkVersion 19
          versionCode 1
          versionName "1.0"
      }
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_6
          targetCompatibility JavaVersion.VERSION_1_6
      }
  
      buildTypes {
          release {
              runProguard true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
  
          debug {
              debuggable true
              runProguard false
          }
      }
  
      productFlavors {
          free {
              packageName "pl.grzeslowski.transport.free"
              buildConfigField "transport.product_flavors.MonetizationType" "MONETIAZATION_TYPE" "transport.product_flavors.MonetizationType.FREE"
          }
  
          paid {
              packageName "pl.grzeslowski.transport.paid"
              buildConfigField "transport.product_flavors.MonetizationType" "MONETIAZATION_TYPE" "transport.product_flavors.MonetizationType.PAID"
          }
      }
  }
  </code></pre>
  
  <p>And this is my console log:</p>
  
  <blockquote>
    <p>Executing tasks: [:transport:compileDebugJava]</p>
    
    <p>Configuration on demand is an incubating feature. Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/build/gradle/0.8.3/gradle-0.8.3.pom">http://repo1.maven.org/maven2/com/android/tools/build/gradle/0.8.3/gradle-0.8.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/lint/lint/22.5.3/lint-22.5.3.pom">http://repo1.maven.org/maven2/com/android/tools/lint/lint/22.5.3/lint-22.5.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/build/builder/0.8.3/builder-0.8.3.pom">http://repo1.maven.org/maven2/com/android/tools/build/builder/0.8.3/builder-0.8.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/lint/lint-checks/22.5.3/lint-checks-22.5.3.pom">http://repo1.maven.org/maven2/com/android/tools/lint/lint-checks/22.5.3/lint-checks-22.5.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/sdklib/22.5.3/sdklib-22.5.3.pom">http://repo1.maven.org/maven2/com/android/tools/sdklib/22.5.3/sdklib-22.5.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/ddms/ddmlib/22.5.3/ddmlib-22.5.3.pom">http://repo1.maven.org/maven2/com/android/tools/ddms/ddmlib/22.5.3/ddmlib-22.5.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/build/builder-model/0.8.3/builder-model-0.8.3.pom">http://repo1.maven.org/maven2/com/android/tools/build/builder-model/0.8.3/builder-model-0.8.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/build/manifest-merger/22.5.3/manifest-merger-22.5.3.pom">http://repo1.maven.org/maven2/com/android/tools/build/manifest-merger/22.5.3/manifest-merger-22.5.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/sdk-common/22.5.3/sdk-common-22.5.3.pom">http://repo1.maven.org/maven2/com/android/tools/sdk-common/22.5.3/sdk-common-22.5.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/build/builder-test-api/0.8.3/builder-test-api-0.8.3.pom">http://repo1.maven.org/maven2/com/android/tools/build/builder-test-api/0.8.3/builder-test-api-0.8.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/common/22.5.3/common-22.5.3.pom">http://repo1.maven.org/maven2/com/android/tools/common/22.5.3/common-22.5.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/lint/lint-api/22.5.3/lint-api-22.5.3.pom">http://repo1.maven.org/maven2/com/android/tools/lint/lint-api/22.5.3/lint-api-22.5.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/dvlib/22.5.3/dvlib-22.5.3.pom">http://repo1.maven.org/maven2/com/android/tools/dvlib/22.5.3/dvlib-22.5.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/layoutlib/layoutlib-api/22.5.3/layoutlib-api-22.5.3.pom">http://repo1.maven.org/maven2/com/android/tools/layoutlib/layoutlib-api/22.5.3/layoutlib-api-22.5.3.pom</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/build/gradle/0.8.3/gradle-0.8.3.jar">http://repo1.maven.org/maven2/com/android/tools/build/gradle/0.8.3/gradle-0.8.3.jar</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/lint/lint/22.5.3/lint-22.5.3.jar">http://repo1.maven.org/maven2/com/android/tools/lint/lint/22.5.3/lint-22.5.3.jar</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/build/builder/0.8.3/builder-0.8.3.jar">http://repo1.maven.org/maven2/com/android/tools/build/builder/0.8.3/builder-0.8.3.jar</a>
    Download
    <a href="http://repo1.maven.org/maven2/com/android/tools/lint/lint-checks/22.5.3/lint-checks-22.5.3.jar">http://repo1.maven.org/maven2/com/android/tools/lint/lint-checks/22.5.3/lint-checks-22.5.3.jar</a></p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>Where: Build file 'D:\Programowanie\GitProjects\transport\android-Transport\transport\build.gradle'
    line: 77</p></li>
    <li><p>What went wrong: A problem occurred evaluating project ':transport'.</p>
    
    <blockquote>
      <p>Could not find method buildConfigField() for arguments [transport.product_flavors.MonetizationType] on
      GroupableProductFlavorDsl_Decorated{name=free, minSdkVersion=-1,
      targetSdkVersion=-1, renderscriptTargetApi=-1,
      renderscriptSupportMode=null, renderscriptNdkMode=null,
      versionCode=-1, versionName=null,
      packageName=transport.free, testPackageName=null,
      testInstrumentationRunner=null, testHandleProfiling=null,
      testFunctionalTest=null, signingConfig=null, resConfig=null}.</p>
    </blockquote></li>
    <li><p>Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p></li>
    </ul>
    
    <p>BUILD FAILED</p>
    
    <p>Total time: 9.781 secs</p>
  </blockquote>