Error:(1, 0) The android gradle plugin version 2.3.0-alpha1 is too
old, please update to the latest version.
To override this check from the command line please set the
ANDROID_DAILY_OVERRIDE environment variable to
"7e7deaebeebf38c3d877c687336265b8c39674f5"
Any idea what Gradle plugin version I should use? I'm using Android Studio 2.3 Beta 1 in canary channel.
Gradle plugin version should be 2.3.0-beta1.
Related
The project is using an incompatible version (AGP 7.3.0) of the Android Gradle plugin. Latest supported version is AGP 7.2.2
I am trying to open my team mate project.
change the version to 7.2.2 in gradle file as shown in the image
Update your Android Studio to Dolphin version.
For more, see this link.
I tried to configure my gradle file to use gradle plugin followig this tutorial: https://github.com/Triple-T/gradle-play-publisher#authenticating-gradle-play-publisher but now i'm getting this error in the title
These is my gradle version:
screenshot
It's warning me to change my gradle version to 7.0.2 and android gradle version to 7
So i change my version to this: screenshot
The problem is after i did that and sync the project i received this error: This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2020.3.1 or newer.
My android studio is 4.1.3 by the way which i think it's the latest one
Here i am getting strange issue because my android studio version & Gradle wrapper are updated with new version & still getting below issue:
Gradle sync failed: The android Gradle plugin version 2.3.0-beta1 is too old, please update to the latest version.
To override this check from the command line please set the ANDROID_DAILY_OVERRIDE environment variable to "e7cc61d747b236b3626248d02049407dfb0f8ae3".
Android studio : 2.3 Beta 3
classpath 'com.android.tools.build:gradle:2.3.0-beta1'
gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
Please drop your comments if anyone found this.
For stable release: You are using the incompatible version between distributionUrl and classpath.
Try this the latest gradle distribution for android studio:
Android plugin for Gradle, revision 2.3.1
classpath 'com.android.tools.build:gradle:com.android.tools.build:gradle:2.3.1'
distributionUrl = https\://services.gradle.org/distributions/gradle-3.5-all.zip
For beta release
Instead get preview builds at
For stable release
Get the stable release at
try to update classpath
classpath 'com.android.tools.build:gradle:2.3.0-beta3 instead of beta1
Check gradle.properties file. In my case i had a configured proxy.
I am getting following error while building Android project in Android Studio 1.2.2 (fresh instalation)
Error:(76, 0) Could not find property 'unitTestVariants' on com.android.build.gradle.internal.dsl.TestOptions_Decorated#261be0aa.
Gradle version is 2.4
Android build gradle version is 1.2.3
Android-apt version is 1.4
Android SDK version is 19.
This is triggered by the Android apt plugin using the unitTestVariants property in its 1.5 version which is only available in the Android gradle plugin from version 1.3 onwards (cf. bug report).
So for now either use android apt plugin version 1.4, or Android gradle plugin version 1.3 (see instructions below).
Note that gradle version itself doesn't matter as far as this bug is concerned and you could use 2.4 as well as 2.2.1.
Use Android gradle plugin >= 1.3
make sure the projects buildscript block references jcenter() (the beta versions aren't on maven)
replace all instances of 'com.android.tools.build:gradle:1.2.3' by 'com.android.tools.build:gradle:1.3.0-beta4'
re-sync the gradle project from within AndroidStudio
Use Android apt plugin <= 1.4
(courtesy of #emarc-magtanong)
make sure all references to the Android apt plugin read com.neenbedankt.gradle.plugins:android-apt:1.4 and not com.neenbedankt.gradle.plugins:android-apt:1.5 nor com.neenbedankt.gradle.plugins:android-apt:+.
Use gradle 2.4. This happened to me as well and tried for it to work with gradle 2.2.1 changing the build tools and android gradle plugin. The only thing that worked was to update gradle. You can update the gradle wrapper.
I'm new to gradle and got 2 questions:
gradle itself is a build tool, so why is the need for Android gradle tool com.android.tools.build:gradle:0.7.+ in the script?
What is the relation between the version of gradle installed (say 1.9) and the version of that Android gradle tool, like 0.7.+ in classpath 'com.android.tools.build:gradle:0.7.+'. If I changed the latter's version to 0.8.+ then the build fails on 'could not find plugin AppPlugin'.
1) Gradle is a build tool, but it requires specific plugin to work.
Android Tool Team is releasing the Android plugin for Gradle.
com.android.tools.build:gradle:0.6.+
com.android.tools.build:gradle:0.7.+
com.android.tools.build:gradle:0.8.+
Here you can find the repo:
https://android.googlesource.com/platform/tools/base/
The current dev branch is idea133. Otherwise you can check gradle_0.8/gradle_0.7 branches.
2) There is a relation between gradle-plugin and the gradle version.
For example
com.android.tools.build:gradle:0.6.+ -> gradle 1.8
com.android.tools.build:gradle:0.7.+ -> gradle 1.9
com.android.tools.build:gradle:0.8.+ -> gradle 1.9/1.10
You can find gradle version used in your project in the file gradle/wrapper/gradle-wrapper.properties
Also there is a relation between gradle-plugin and the IDE version.
For example:
Android Studio 0.3.x -> gradle-plugin 0.6
Android Studio 0.4.x -> gradle-plugin 0.7
Android Studio 0.4.3+ -> gradle-plugin 0.8
For updated news you can check this link: http://tools.android.com/recent
You can also check this updated post:
Android Studio Gradle issue upgrading to version 0.5.0 - Gradle Migrating From 0.8 to 0.9 - Also Android Studio upgrade to 0.8.1
If you change your plugin version, check compatibility, and then click sync project with your gradle files.It will download a new plugin version if you need it.
I will try to answer your questions.
As you said, Gradle is a build tool, but the line you have mentioned in your first question is referring to Gradle Java plugin version. Gradle has plugin for building Java projects. These plugins extend upon the general purpose build tool Gradle is, and may provide additional features. You can read more about the Gradle plugins here.
The reason your build fails when you change the plugin version is simple, the plugin version 0.8 is not there. There is a relationship between Gradle version and the plugin version and a developer has to maintain that. You can only use a plugin version which has been released and is compatible with the Gradle version. I hope the answer to first question answers this anyways.