简体   繁体   中英

Failed to apply plugin [id 'com.android.application'] Gradle version 2.10 is required. Current version is 2.4

I changed the gradle version from 2.4 to 2.1 but it not worked for me I changed version in ...\\gradle\\wrapper\\gradle-wrapper.properties file original contenet of file is:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip

And updated content are:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

But issue is not resolved

Set the distributionUrl to;

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

This sets the gradle version to 2.10, which, as the error says, is required...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM