Android : gradle source() don`t work in com.android.tools.build:gradle:0.11.+

on Wednesday, August 6, 2014


I want build android using gradle. In android.tools.build:gradle:0.9.2 work source() for sourcesets. But android.tools.build:gradle:0.11.+ (or higher) dosen`t work source().


Could not find method source() for arguments [[ src ]] on source set main.


why can`t use source() for gradle:0.+?



android {
sourceSets {
mysource {
java {
srcDir '...'
exclude '...'
}
}

main {
java {
srcDir '...'
source sourceSets.mysource.java
}
}
}
}

0 comments:

Post a Comment