我正在尝试从我的构建中排除特定的目录,在Android Studio 2.1.2,gradle 2.10中。这是我现在拥有的build.gradle文件:
model {
android {
compileSdkVersion = 23
buildToolsVersion = '23.0.2'
defaultConfig {
applicationId = 'com.android.gl2jni'
minSdkVersion.apiLevel = 5
targetSdkVersion.apiLevel = 23
}
ndk {
platformVersion = 9
moduleName = 'gl2jni'
toolchain = 'clang'
stl = 'gnustl_static'
cppFlags.addAll(['-std=c++11', '-Wall', '-Wc++11-narrowing'])
ldLibs.addAll(['log', 'GLESv2'])
}
buildTypes {
release {
minifyEnabled = false
proguardFiles.add(file('proguard-rules.txt'))
}
}
sources {
main {
jni {
source {
srcDirs = ['src/main/jni/KataPlatform']
exclude 'src/main/jni/KataPlatform/Linux'
}
}
}
}
}
}
排除指令似乎没有效果,因为构建程序愉快地进入子文件夹并开始生成错误。我该如何让它跳过Linux子文件夹中的所有文件?