title: how to add test dependency with android gradle plugin experimental 0.1.0
body: <p>I followed <a href="http://tools.android.com/tech-docs/new-build-system/gradle-experimental" rel="nofollow noreferrer">this</a> guide to build an ndk hybrid project on <a href="http://tools.android.com/download/studio/canary/1-3-rc-1" rel="nofollow noreferrer">Android Studio 1.3.0 RC1</a> with <strong>gradle-experimental:0.1.0</strong>.</p>
  
  <p>Everything is OK, but if I try to add test library dependency, I found the method <code>androidTestCompile</code> is not supported any more. Like this:</p>
  
  <p><img src="https://i.stack.imgur.com/Y2sr1.png" alt="Error: DSL method not found"></p>
  
  <p>And <code>testCompile</code> also cause the same error.</p>
  
  <p>The offical guide doesn't talk about this. So, how can I add add test dependency gradle-experimental Or this version do not supports this function?</p>
  
  <p>This is my build.gradle(project):</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle-experimental:0.1.0'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>
  
  <p>This is build.gradle(moudle):</p>
  
  <pre><code>apply plugin: 'com.android.model.application'
  
  model {
      android {
          compileSdkVersion = 22
          buildToolsVersion = "23.0.0 rc3"
  
          defaultConfig.with {
              applicationId = "co.yishun.onemoment.app"
              minSdkVersion.apiLevel = 15
              targetSdkVersion.apiLevel = 22
              versionCode = 5
              versionName = "2.0 canary"
              testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner"
          }
      }
  
      android.buildTypes {
          release {
              isMinifyEnabled = true
              proguardFiles += file('proguard-rules.pro')
          }
      }
  
      android.productFlavors {
          create("flavor1") {
              applicationId = 'com.app'
          }
      }
  
      android.ndk {
          moduleName = "c_test"
      }
  }
  
  dependencies {
  
  
      androidTestCompile 'com.android.support.test:runner:0.3'
      // Set this dependency to use JUnit 4 rules
      androidTestCompile 'com.android.support.test:rules:0.3'
      // Set this dependency to build and run Espresso tests
      androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2'
  
  
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:support-annotations:22.2.0'
      compile 'com.android.support:support-v4:22.2.0'
   }
  </code></pre>