Reputation: 91
[![enter image description here][1]][1]
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
Reputation: 91
It might help people like me-
I was adding dependencies in the wrong gradle.build file.
Later I placed .jar files in /lib folder and connected that to gradle.build
I updated my Sdk as well.
Upvotes: 0
Reputation: 363737
Follow these steps:
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
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