The plugin dependency is usually declared in the main / top level build. Older versions as far back as 2.2 are supported. In practice no-one doesĪ project folder structure typically look like this:Ī gradle project is usually divided in sub-project or modules each containing a dedicated build script. In your projects top-level adle file, the Android Gradle plugin version should be between 4.1 and 7.2.
In theory you can install gradle directly, build the configuration files and directory structure by yourself. So here, we just define that we want to use :gradle:2.2.3 as plugin for gradle to build our project.
The main features of the Android Gradle Plugin are: Enter settings page (File -> Settings on Windows or Android Studio -> Preferences on Mac OS X) and make sure that you check Use default gradle. Learn the basic by reading Configure your build with Gradle. Android-gradle is a gradle plugin officially maintained by Google Tools developer team and is the official build tool since the announcement in at the Google I/O.