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:
Donwload and Install Java OpenJDK version 6 or 7 (you can use 8 with addi...
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 And...
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/gradle-wrapper.properties file.
For example:
...
distributionUrl = https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
...
...