Android Studio plugin is too old Android Studio plugin is too old android android

Android Studio plugin is too old


UPDATED (28/03/2017):

2.4.0-alpha3 is the latest release

classpath 'com.android.tools.build:gradle:2.4.0-alpha3'

Check https://bintray.com/android/android-tools/com.android.tools.build.gradle/view for the latest gradle versions.


2.0.0-alpha1 is on the Canary channel and apparently these releases come with an expiry date. 2.0.0-alpha3 is the latest release. Switch to

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

and you should be fine. Keep checking http://tools.android.com/tech-docs/new-build-system to know the latest releases.

You might run into some Dex error. I had to do Build > Clean Project once to get it to work.


Change your existing configuration with this

  1. In your project view, select Gradle Scripts

  2. Open gradle-wrapper.properties

  3. Change this line:

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

with

     distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
  1. Go to build.gradle (Project: your_app_name)

  2. Change this line

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

to this

     classpath 'com.android.tools.build:gradle:1.5.0'
  1. Don't click Sync Now
  2. From menu choose File -> Invalidate Caches/Restart...
  3. Choose first option: Invalidate and Restart

Android Studio would restart. After this, it should work normally

Hope it help


Now com.android.tools.build:gradle:2.0.0-alpha3 is old use this

 com.android.tools.build:gradle:2.0.0-beta2