I'm trying to update Android gradle plugin from 3.5.1 to 3.6.1.
And got error:
Cannot cast object 'com.android.build.gradle.internal.pipeline.TransformTask$2$1#67833830' with class 'com.android.build.gradle.internal.pipeline.TransformTask$2$1' to class 'com.android.build.gradle.internal.pipeline.TransformTask'
There is not this error on 3.5.1 - 3.5.3. It reproduce only on 3.6.0 - 3.6.1
Gradle 6.2.2
Android Studio 3.6
Android SDK Platform-Tools 29.0.6
compileSdkVersion 29
targetSdkVersion 29
I encountered the same thing after updating gradle plugin from version 3.5.3 to 4.0.0. It turned out, that there was a problem with AspectJ plugin com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.5. After updating the plugin to version 2.0.10 the problem disappeared.
As per this documentation:
Gradle Version 3.6.0
This version of the Android plugin requires the following:
Gradle 5.6.4. To learn more, read the section about updating Gradle.
SDK Build Tools 28.0.3 or higher.
It's working.
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
After updating Android studio to version 4.1.3 from version 3.0.1 I am seeing the error below for an existing Android project.
"Minimum supported Gradle version is 6.5. Current version is 6.1.1. Please fix the project's Gradle settings."
In Project Structure:
Android Gradle plugin is 4.1.2,
Android Gradle version is 6.5.
Have tried deleting the Gradle 6.1.1 distribution but Android Studio keeps downloading it.
Any help will be much appreciated.
Thanks.
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.
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.