Gradle version error

Asked

Viewed 399 times

1

Does anyone have any idea how to resolve this error in Android Studio?

Plugin is Too old, Please update to a more recent version, or set ANDROID_DAILY_OVERRIDE variable to...

Erro Gradle

error-Gradle.Png1055x71 6.59 KB

My classpath is like this:

classpath 'com.android.tools.build:Gradle:2.2.0-alpha3'

This link says that the last version of Gradle is alpha4 but does not work as alpha4.

Link: http://tools.android.com/tech-docs/new-build-system

I already clicked on the error link but it doesn’t work either.

How to solve this problem?

Thank you all.

1 answer

1

You can change the classpath and put a "+" before the version that defines the change, so it will not lose compatibility (so soon).

classpath 'com.android.tools.build:gradle:2.2.+'

By doing this you ensure that it will be supported until as long as there are versions 2.2.any version

The more specific it is, the greater the chance of losing compatibility, the higher the granularity, the greater the chance of maintaining compatibility, and having to redo something that the API has changed.

For example: You can do it:

classpath 'com.android.tools.build:gradle:2.+'

But it’s risky, because the developer might depress some method from the 2.3 and you get caught by surprise and have to redo some things to "touch box".

  • Carlos vlw for the answer. I edited here but it didn’t work. Thanks man.

  • Patz, tried to give a Fix Plugin?

  • Yeah bro but still didn’t work out.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.