• Register
0 votes

Problem :

Recently I had preinstalled my laptop and then switched to Windows 10. Before that I had saved my project in the Android Studio 2.2.3 and then I downloaded the same version of the Android Studio after I completed the preinstallation of my laptop, but if I tried to Open Existing Project I got the below strange message:

Failed to sync gradle project 'ApplicationName' Error:Unable to find method 'org.gradle.api.artifacts.Configuration.setExtendsFrom(Ljava/lang/Iterable;)Lorg/gradle/api/artifacts/Configuration;'.
Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project. Blockquote

I had tried all of the steps mentioned by Android Studio to resolve the error but I am still facing the same issue.

2.3k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

You are facing the error as the google have updated a android plugin and also the gradle integration. So you must update your android studio to a latest version.

Your Android Studio will certainly suggest you the updates you must make and then you can update it by clicking on your notification inside the android studio at the very bottom.

And after that the above error will be automatically fixed for you.

5k points