Gradle thinks 2.10 is less than 2.2 when resolving plugins


(Christopher Brind) #1

I have an Android Studio project and upgraded the gradle-wrapper to use 2.10.

I now get the following error:

A problem occurred evaluating project ':app'.
> Failed to apply plugin [id '']
   > Gradle version 2.2 is required. Current version is 2.10. If using the gradle wrapper, try editing the distributionUrl in /Users/brindy/Projects/TestApp/gradle/wrapper/ to

Using 2.9 works fine.

Same thing happens if I don’t use the gradle-wrapper: 2.10 gives the above error, 2.9 works fine.

Was previously using 2.7.

Thanks in advance.

(Sterling Greene) #2

This is coming out of the Android Gradle plugin, they only accept 2.2 - 2.9:

There’s a system property you can set to override that check. A change would need to be made to the Android plugin to accept 2.10+.

(Sterling Greene) #3

Actually, nevermind. Seems like someone fixed it:

I think there’s a newer Android Gradle plugin release that contains that fix (I think 1.5.x)

(Henry.Tang) #4

As new release with the fix not available yet, the former walk-around works fine.

buildscript {[‘’] = ‘true’


(Maninder Singh) #5

Yes this work around worked for me for the time being.

(Shekar) #6

Use ‘./gradlew’ instead of ‘gradle’ to resolve this issue.

(Shekar) #7

Use ‘./gradlew’ instead of ‘gradle’ to resolve this issue.