Execution failed for task ':gradle:compileGroovy'.

I am using android-studio-2024.2.1.9 version and I am encountering the problem in the screenshot with Gradle. How can I solve this?


Please never anywhere share screenshots of text if you only want to share the text and not something additional like colors or IDE annotations. Text in images is hard to read, especially on mobile, very hard to copy, and nearly impossible to search for.

Regarding the problem, you confuse the Gradle version with the Android Gradle Plugin version. Unfortunately Google named their artifact gradle, but that version is not related to the Gradle version. There is no version of AGP called 8.10.0.

thank u for answer i have changed all my verisons but i have same exception
Gradle 8.7

Build time: 2024-03-22 15:52:46 UTC
Revision: 650af14d7653aa949fce5e886e685efc9cf97c10
Kotlin: 1.9.22
Groovy: 3.0.17
Ant: Apache Ant™ version 1.10.13 compiled on January 4 2023
JVM: 17.0.12 (Oracle Corporation 17.0.12+8-LTS-286)
OS: Windows 11 10.0 amd64
android version Android Studio Ladybug | 2024.2.1
The exception
Execution failed for task ‘:gradle:compileGroovy’.

Could not resolve all files for configuration ‘:gradle:compileClasspath’.
Could not find com.android.tools.build:gradle:8.7.
Searched in the following locations:
Thanks

I can just repeat what I said, just with the version exchanged.

You confuse the Gradle version with the Android Gradle Plugin version. Unfortunately Google named their artifact gradle, but that version is not related to the Gradle version. There is no version of AGP called 8.7.