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.
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
This version of the Android Support plugin for IntelliJ IDEA (or
Android Studio) cannot open this project, please retry with version
4.3 or newer.
The Gradle version is
classpath 'com.android.tools.build:gradle:7.0.0-alpha05'
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-all.zip
I'm using Android Studio Arctic Fox 2020.3.1 canary 10. I downgraded the Gradle to 7.0.0-alpha10 and it worked well.
Check your Android Studio Version (Help->About) e.g. 4.1.2
Update build.gradle class path to your version:
classpath 'com.android.tools.build:gradle:4.1.2'
where 4.1.2 is the version found under Help->About
Alternatively, you could just update your Android Studio Version to what is suggested.
JetBrains's support gave the similar answer as wandesky:
The message means that the Android plugin bundled with 2021.2 version
is not compatible with the Android Gradle plugin used by your Gradle
project:
com.android.tools.build:gradle:7.0.0
You will need to either use lower Gradle plugin version or use Android
Studio IDE to develop this project until IntelliJ IDEA merges latest
updates of Android plugin from the Android Studio IDE.
The classpath 'com.android.tools.build:gradle:4.2.1' should work fine
in 2021.2 IntelliJ IDEA.
(source)
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.
I successfully upgrade gradle from 2.10 to 3.5 to build APK in android studio 3, but have problem like this
And this is my build gradle
If you are going to update gradle version specially 3.1+ than you might need to upgrade support lib version too. its weird but it seems compatibility issues between gradle version and support lib version.