My gradle version is 2.2 in Project's gradle wrapper properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-
all.zip
build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
I am getting an error while building the apk
The project is using an unsupported version of Gradle. Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)