Specifying test dependencies with the Gradle Android build system -


i want specify dependencies tests , after reading gradle dependency management basics though add testcompile calls dependency declarations this:

dependencies {     compile group: 'com.squareup.dagger', name: 'dagger', version: '1.0.0'       testcompile group: 'junit', name: 'junit', version: '4.11'     testcompile group: 'com.squareup', name: 'fest-android', version: '1.0.1' } 

this, however, fails error message:

> not find method testcompile() arguments [{group=junit, name=junit, version=4.11}] on project ':simstatus'. 

am missing here?

(full gradle build file reference)

the android build system doesn't use standard gradle java plugin.

its documentation says:

as mentioned previously, next main sourceset androidtest sourceset, located default in src/androidtest/

additionally, sourceset can configured have own dependencies. default, application , own dependencies added test app classpath, can extended with

dependencies {     androidtestcompile 'com.google.guava:guava:11.0.2' } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -