Android Studio 2.0 - Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to

后端 未结 17 836
我寻月下人不归
我寻月下人不归 2020-11-28 22:15

I updated the Android Studio version 2.0 and was using normally. When I created a new project today, it is displaying the error Plugin is too old, please update to a

相关标签:
17条回答
  • 2020-11-28 22:56

    I have resolved this way.

    Steps:

    1. Open gradle-wrapper.properties file and change distributionUrl to https\://services.gradle.org/distributions/gradle-2.14.1-all.zip.
    2. Open root level build.gradle and change classpath to com.android.tools.build:gradle:2.2.2.
    3. Sync your Android studio project.

    Reference screen shot:

    Done.

    0 讨论(0)
  • 2020-11-28 22:57
    classpath: com.android.tools.build:gradle:+
    

    This will solve the problem by updating gradle to latest one.

    However it is dangerous(will code in alpha stage) & will also give warnings.

    0 讨论(0)
  • 2020-11-28 22:58

    As of April 5, 2016 this worked for me:

    classpath 'com.android.tools.build:gradle:2.0.0-rc3'
    
    0 讨论(0)
  • 2020-11-28 22:58

    gradle version you need became

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

    Which requires you to use the gradle wrapper for 2.10 if you were still using previous version

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

    On android studio you can find your wrapper by changing to the project view and looking in gradle/wrapper/gradle-wrapper.properties

    0 讨论(0)
  • 2020-11-28 22:58

    I change my classpath from 'com.android.tools.build:gradle:2.2.0-alpha4'

    to classpath 'com.android.tools.build:gradle:2.2.0-alpha5'

    and clicked "try_again" when the warning appears "unable to find cached classpath" you just click "sync", this worked like a breeze.

    0 讨论(0)
  • 2020-11-28 23:02

    In new project change this part:

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

    with

    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'.
    

    If you're not experienced user, please stick with Android Studio's Updates Stable Channel. I suppose you got Android Studio from Canary Channel.

    Note that:

    The Canary Channel for Android Studio delivers the bleeding edge updates on a roughly weekly basis. While these builds do get tested, they are still subject to bugs, as we want people to see what's new as soon as possible.

    From: http://tools.android.com/download/studio/canary

    You don't need to change dependencies of your older projects. They should run normally on the latest version.

    0 讨论(0)
提交回复
热议问题