RSS

Tag Archives: plugin

Android Studio : Upgrading Gradle and Its Plugin

Android Studio : Upgrading Gradle and Its Plugin

androidstudiohero

Hey there, you might have caught in error message in Android Studio. Here, it says

Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to “XXXX”

Here, it also stops working. This starts giving pain and delays your work. Tackling this is simple if you know how to do it. So, here we are ->

1. Upgrading Gradle

Go to gradle-wrapper.properties and change

distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-bin.zip

Refer this link always before changing to get latest or which version you need. The change you need to perform is change underlined part only by the new one. So, this update may also need new plugin.

After this you must clean and rebuild the project.

2. Upgrading Gradle Plugin

Go to build.gradle and perform a change in

classpath ‘com.android.tools.build:gradle:2.1.0-alpha3

Refer this link to find out newest versions of Gradle plugin. Now change the underlined part as  you need them. After this you must clean and rebuild the project.

3. Solving the error without updating gradle and its plugin

You may need set an environment variable with the specified value. On OSX this looks as follows:

launchctl setenv ANDROID_DAILY_OVERRIDE <your-value-on-error-message>

Afterwards, clean the project, restart AS, and build again.

 

 
Leave a comment

Posted by on March 26, 2016 in Android, tech geak

 

Tags: , , , , , ,

 
%d bloggers like this: