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

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

    Just in Advanced System Settings in Windows Properties, add a new environment variable with the name ANDROID_DAILY_OVERRIDE and the given value in error message. Restart android studio and you will be ready to go

    enter image description here

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

    Android Studio 2.0 has an update project to use instant-run. For those like me with little brains:

    http://tools.android.com/tech-docs/instant-run

    The current version of Android Studio 2.0 is Beta 6.

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

    If you are using Android Studio 2.0 Preview I can suggest using 'beta' updates channel instead of 'stable'. It will allow you to receive latest gradle configuration changes. You can change updates channel in Settings - Appearance & Behavior - System Settings - Updates. Select Automatically check updates for [Beta Channel]

    In order to know actual version of gradle classpath and distributionUrl (check Nick Caroso's answer) you can create new empty project and see these values there.

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

    You need to change your gradle-wrapper.properties file in gradle/wrapper folder of your app, change your distributionUrl as this:

    distributionUrl=http\://services.gradle.org/distributions/gradle-2.8-all.zip
    

    Use http: or https:\ as per your requirement. Then just clean your project and you are done!!!

    Side Note :

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

    is available now, if you want to use latest version.

    Also you can take advantage of instant run feature of android studio using this, which is not available in gradle version below 2.0.0

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

    Same problem on update. this Fixed it for me:[build.gradle]

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

    or

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

    This problem occures generally when the IDE(android studio) in which project is build and the project are not in compatible gradle plug in. Please check the link below http://tools.android.com/tech-docs/new-build-system/version-compatibility

    In my case i had created a project using AS 1.0/2.0 version, and later imported in studio version new it gave me error then I opened project in older version of AS it worked. you can also check http://tools.android.com/tech-docs/new-build-system

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