title: How to specify sourceCompatibility compile options when using the Android Gradle Experimental plugin
body: <p>I'm currently using the Android Gradle Experimental plugin in one of my apps and I would like to be able to use the <a href="https://github.com/evant/gradle-retrolambda" rel="noreferrer">retrolambda</a> library.  One of the requirements is to specify some compileOptions.  In the normal android build plugin, this works:</p>
  
  <pre><code>  android {
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
    }
  </code></pre>
  
  <p>For the new Experimental plugin, I added this under model.android:</p>
  
  <pre><code>model {
    android {
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
    }
  }
  </code></pre>
  
  <p>However, the above results in a gradle sync error:</p>
  
  <pre><code>Gradle 'ApkTestRunner' project refresh failed
  Error:Cause: com.android.build.gradle.managed.AndroidConfig$Impl
  </code></pre>
  
  <p>How can I set sourceCompatibility and targetCompatibility using the new Android Experimental Gradle plugin?</p>
  
  <p>Thanks.</p>