Sourav
Sourav

Reputation: 91

Gradle Build Failed - Gradle version 1.10 is required. Current version is 2.8

[![enter image description here][1]][1]enter image description here

I have modified the file .but still not working. Can you please tell exactly where I am going wrong. previously,It was showing error- Required gradle 1.10 , but currently using 2.8

Upvotes: 0

Views: 193

Answers (2)

Sourav
Sourav

Reputation: 91

It might help people like me-

  1. I was adding dependencies in the wrong gradle.build file.

  2. Later I placed .jar files in /lib folder and connected that to gradle.build

  3. I updated my Sdk as well.

Upvotes: 0

Gabriele Mariotti
Gabriele Mariotti

Reputation: 363737

Follow these steps:

  1. Go to Settings > Builds ,Execution , Deployment -> Build Tools -> Gradle and set Use default gradle wrapper

enter image description here

  1. Edit the Project\gradle\wrapper\gradle-wrapper.properties file and set the field distributionUrl with:

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

  2. Move the gradle plugin outside the dependecies block and inside the buildscript block:

Somenthing like:

buildscript {
    repositories {
        jcenter()
    }

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

Upvotes: 1

Related Questions