I am trying to declare dependencies in my gradle project using the method described in this answer .
However, when I do this, I get this error:
No such property: libraries for class
How can i fix this?
The dependencies declared as top level properties of build.gradle are as follows:
ext.libraries = [ junit: 'junit:junit:4.10' ]
Trying to get a dependency in the module level of build.gradle (where the error occurs):
testCompile([ libraries.junit ])
Mistake:
No such property: libraries for class: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
java properties dependencies gradle
java123999 Dec 17 '15 at 15:54 2015-12-17 15:54
source share