I create a simple project in AndroidStudio with a few modules. Each module\'s gradle script contains the following code:
android { compileSdkVersion 18
In build.gradle of main project you should write something like next:
project.extensions.add("buildToolsVersion", "19.0.3")
In subproject you can use this extensions:
buildToolsVersion rootProject.buildToolsVersion
More info you can find here