15

I got this weird error.

Warning:Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in D:\RaymondAndroidProjects\testPaypal\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip

Raymond Seger
  • 1,080
  • 5
  • 17
  • 34

3 Answers3

14

Go to File > Settings > Build, Execution, Deployment > Build Tools > Gradle.
Choose Use default gradle wrapper

luchaninov
  • 6,792
  • 6
  • 60
  • 75
Phuc Vuong
  • 150
  • 7
10

last time started a new project i also got this problem, solved by change my Project build.gradle dependencies classpath from

classpath 'com.android.tools.build:gradle:2.0.0-alpha1'   

to

classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
warungman
  • 303
  • 2
  • 8
8

set Use default gradle wrapper and edit Project\gradle\wrapper\gradle-wrapper.properties files field distributionUrl like this

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

enter image description here

enter image description here

Md Imran Choudhury
  • 9,343
  • 4
  • 62
  • 60