Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle sync failed: Unsupported method: Variant.getDesugaredMethods(). The version of Gradle you connect to does not support that method

Woke up to this issue, not sure where to go from here. Even running gradle with --stacktrace or --scan, I can't seem to understand what exactly it wants me to do. How can I fix this? Thank you.

Unsupported method: Variant.getDesugaredMethods().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

enter image description here

like image 427
ClarenceHD Avatar asked Sep 12 '25 08:09

ClarenceHD


2 Answers

Update your android gradle plugin to the 7.3.0-alpha09 version and gradle wrapper to distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip

like image 70
Warble Avatar answered Sep 14 '25 23:09

Warble


It seems like this is a bug in Dolphin, that should hopefully be fixed soon - https://issuetracker.google.com/issues/227524922?pli=1

Until then, rolling back to Chipmunk as @Bob Saget suggests may be the best option

Edit: This seems to be fixed in Electric Eel

like image 40
crobicha Avatar answered Sep 14 '25 21:09

crobicha