0

I always get following error whenever I create a new project:

Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "ccbf255801ffbc86319e3fd14bdc0682272bf5c9" Fix plugin version and sync project
Open File

Somebody please help.

I have tried everything here but is not helping

Community
  • 1
  • 1
Rushi M Thakker
  • 679
  • 2
  • 15
  • 34
  • could you try to update plugin version inside ${project}/build.gradle, and gradle version inside ${project}/gradle/wrapper/gradle-wrapper.properties? also check your local.properties for sdk/ndk path is correct [but this error may not related to that]. – Gerry Aug 23 '16 at 13:57
  • @Gerry please check my comment on fdsilva answer. I don't want to edit it for every project I create. I want to do it for whole system. – Rushi M Thakker Aug 24 '16 at 02:27
  • true, I understand now that you do not want to update that often. – Gerry Aug 24 '16 at 17:54

1 Answers1

0

Try this:

classpath('com.android.tools.build:gradle:2.1.2') {
          force = true
}

It works for me, I hope it's help's you

fdsilva
  • 93
  • 1
  • 8
  • But I would have to do this in every project I create, right? I want every project to get initialized with 2.1.0 build tools but they get initialized with 2.2.0-alpha6 – Rushi M Thakker Aug 24 '16 at 02:25
  • Unfortunately yes, you have to do it for every project, which version is your Android studio and you're gradle? – fdsilva Aug 24 '16 at 02:47
  • My studio is 2.2 Preview 6. In File->Project Structure->Project pane **Gradle Version**:2.10 and **Android Plugin Version**:2.1.0 – Rushi M Thakker Aug 24 '16 at 03:01
  • @RushiMThakker, unfortunately, you have to do do it for all your project's, if has some way to do this for all projects, I didn't figure it out yet. I hope it helps you – fdsilva Aug 24 '16 at 13:46
  • Oh!! I wish it could be possible :( – Rushi M Thakker Aug 24 '16 at 15:13