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

后端 未结 17 835
我寻月下人不归
我寻月下人不归 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 23:05

    File -> Project Structure -> Project -> Android Plugin version = 2.2.3

    Working fine of Android Studio 2.2.3

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

    UH OH, Google Notice: "This website no longer provides downloads for Android Studio."

    (Old 'channel' links no longer work. Links in this answer have been updated to the new formats, make sure to change your bookmarks if you were using them)

    You need to update the version of the gradle tools you are building with. This can be found inside the dependencies section of your build.gradle. You have 3 options you can update to:

    The latest stable version referenced in the release channel as of 2nd March, 2017 is

    classpath 'com.android.tools.build:gradle:2.3.0' 
    

    Or the latest beta version via preview channel as of 15th February, 2017 is

    classpath 'com.android.tools.build:gradle:2.3.0-beta4'
    

    And the latest alpha version also from the preview channel as of 21st March, 2017 gives you the option to use

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

    Updating requires you to also upgrade the gradle wrapper. As of 20th February '17, the newest is:

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

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

    Sometimes after changing wrapper the project will fail to compile with an error like “Minimum supported Gradle version is 2.14.1. Current version is 2.10. Try changing Gradle distribution version to...” despite already having the correct version in gradle-wrapper.properties. If that happens try the following:

    Go to Settings > Build, Execution, Deployment > Gradle

    Under Project-level settings ensure that Use default gradle wrapper (recommended) is the selected option, then re-build your project.

    (Additional Note: With regards to the alpha and beta versions - there is not always a newer build than the stable version when I check, in those cases I've just given values for the previous version. This allows you to roll back to that version if you experience issues with the released version)

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

    try update gradle to 2.10

    for mac, tha path is Android Studio > Preferences > Builds,Execution,Deployment > Build Tools > Gradle

    of course you must download gradle 2.10 before

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

    I got the same error on 04/07/2016 with 'com.android.tools.build:gradle:2.2.0-alpha2' and gradle wrapper 2.10 then, I just changed to

    'com.android.tools.build:gradle:2.2.0-alpha3'
    

    now I have no problems.

    Hope this help peple.

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

    just change classpath 'com.android.tools.build:gradle:2.0.0-alpha ' or

    classpath 'com.android.tools.build:gradle:2.1.0'
    
    0 讨论(0)
提交回复
热议问题