To update Android Plugin for Gradle:
You can find the list of available plugin versions in:
Android Studio\gradle\m2repository\com\android\tools\build\gradle\
directory. In my case I have:
- 1.3.0
- 1.5.0
- 2.1.0-alpha3
- 2.1.0-alpha4
Use the desired version by editing your project build.gradle
file.
Example of build.gradle
:
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0-alpha4'
}
To update Gradle:
In your project directory navigate to \gradle\wrapper\
directory and edit:
gradle-wrapper.properties
file.
Example: To change from version 2.8 to version 2.10
before: distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
after: distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
At the end in Android Studio select: Tools→Android→Sync Project with Gradle files
References
http://stackoverflow.com/questions/17727645/how-to-update-gradle-in-android-studio