<PROJECT_ROOT>\app\build.gradle specific to the application module .
<PROJECT_ROOT>\build.gradle is a "top-level build file" where you can add configuration parameters common to all subprojects / modules.
If you use another module in your project, you will have another build.gradle file as the local library: <PROJECT_ROOT>\module\build.gradle
In the example in the top-level file, you can specify these general properties:
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' } } ext { compileSdkVersion = 23 buildToolsVersion = "23.0.1" }
In app\build.gradle
apply plugin: 'com.android.application' repositories { mavenCentral() } android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion }
Gabriele Mariotti Apr 23 '14 at 10:41 2014-04-23 10:41
source share