Why am I getting an “unsupported version of Gradle” using a sample application in Android Studio?

When I try to import the tutorials application into Android Studio, I get this message:

The project uses an unsupported version of Gradle.

Pay attention to the supported version of Gradle in the settings of the Gradle project or in the shell of the Gradle project (if applicable).

Im new to android studio and counter too. What is the problem with Gradle?

Im using Android Studio 1.0.1.

+3
source share
1 answer

Android Studio 1.0.1 supports gradle 2.2.1+ and Android gradle plugin 1.0.0 +

How to change gradle version.

gradle/wrapper. gradle-wrapper.properties.

distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip

gradle:

build.gradle .

:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()   // or mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0'        
    }
}

. build.gradle. .

.

+2

All Articles