Gradle version error

1

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

Plugin is too old, please update to ANDROID_DAILY_OVERRIDE variable to ...

error-gradle.PNG1055x716.59KB

Myclasspathlookslikethis:

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

Thislinksaysthatthelastversionofgradleisalpha4butdoesnotworkasalpha4.

Link: link

I have already clicked on the error link but it does not work either.

How can I solve this problem?

Thank you all.

    
asked by anonymous 19.07.2016 / 18:45

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.+'

Doing this ensures that it will be supported until version 2.2. Any version

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

For example: You can do this:

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

But it is risky because the developer can deprecate some method from 2.3 and you get caught off guard and have to redo some things to "touch box."

    
19.07.2016 / 18:53