Recently always met this issue while using Android Studio, "Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to ..."
After Android Studio starts to support Instant Run, this issue becomes critical. If you want to use Instant Run, you should keep your gradle and gradle plugin version updated.
First time I met this issue, I search online, luckily I can easily find the solution. But 2nd time is not so lucky, because the answer online is outdated. So the best solution is to know which version is the latest one, otherwise every time I need to waste a lot of time to find the solution.
So here is the solution.
Here is the link to check the latest version of gradle plugin.
https://jcenter.bintray.com/com/android/tools/build/gradle/
Example to apply to root level
classpath 'com.android.tools.build:gradle:2.4.0-alpha7'
Here is the link to check the latest version of gradle.
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0.2-all.zip
After Android Studio starts to support Instant Run, this issue becomes critical. If you want to use Instant Run, you should keep your gradle and gradle plugin version updated.
First time I met this issue, I search online, luckily I can easily find the solution. But 2nd time is not so lucky, because the answer online is outdated. So the best solution is to know which version is the latest one, otherwise every time I need to waste a lot of time to find the solution.
So here is the solution.
Here is the link to check the latest version of gradle plugin.
https://jcenter.bintray.com/com/android/tools/build/gradle/
Example to apply to root level
build.gradle
file (Updated on 26 Jul 2017),classpath 'com.android.tools.build:gradle:2.4.0-alpha7'
Here is the link to check the latest version of gradle.
Example to apply to
gradle-wrapper.properties
file (Released on 26 Jul 2017, updated on 26 Jul 2017),
No comments:
Post a Comment