I'm using gradle 2.12 with build tools 'com.android.tools.build:gradle-experimental:0.6.0-alpha5'. I want to specify some task and I have trouble understanding the syntax. I'm getting errors in the task syntax part. Can someone post an example with task. Thanks!
This is what I have:
task ndkBuildName(type:Exec) {
commandLine '/Users/Anu/android-ndk-r11b/ndk-Build',
'-C',
'V=1',
'NDK_PROJECT_PATH=build/intermediates/ndk',
'NDK_LIBS_OUT=src/main/jniLibs',
'APP_BUILD_SCRIPT=src/main/jni/Android.mk',
'NDK_APPLICATION_MK=src/main/jni/Application.mk'
}
tasks.withType(JavaCompile) {
//compile(type: JavaCompile) {
compileTask -> compileTask.dependsOn(ndkBuildName)
}