Getting started with android-gradle

Android Plugin for Gradle

As described in the remarks section the Android build system uses the Android Plugin for Gradle to support building Android applications with Gradle.

You can specify the Android Plugin for Gradle version in the top-level build.gradle file. The plugin version applies to all modules built in that Android Studio project.

buildscript {
  dependencies {
    classpath ''

Gradle wrapper

As described in the remarks section you can specify the Gradle version used by each project editing the Gradle distribution reference in the gradle/wrapper/ file.

For example:

distributionUrl = https\://

Initial Setup with Android Studio

To setup for using Android Gradle Plugin you need many things:

  • java
  • gradle
  • the Android project folder structure
  • an Android Manifest
  • initial plugin setup

The easiest way to get all of them is to follow these steps:

  1. Donwload and Install Java OpenJDK version 6 or 7 (you can use 8 with additional settings of the gradle plugin)
  2. Download and Install Android Studio
  3. Create a new project (if you need help see [Creating a New Project][3])

Check Remarks section for more informations.

[3]: a New Project