I have recently updated the android studio and all plugins.
while trying to run my existing projects it's showing the below error
Unable to find method 'com.google.common.collect.ImmutableSet.builderWithExpectedSize(I)Lcom/google/common/collect/ImmutableSet$Builder;'
com.google.common.collect.ImmutableSet.builderWithExpectedSize(I)Lcom/google/common/collect/ImmutableSet$Builder;
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
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.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Showing the same error after creating new project.
Tried with below options shown by Android Studio, but didn't worked.
- Re-download dependencies and sync project (requires network)
- Stop Gradle build processes (requires restart)
Did anyone faced this issue or if anyone knows how to solve this issue? Please help me. My complete work got stuck because of this.
What I recommend you is to go to files and select invalide and restart (you will find something like that). If your problem has not been sort. Then uninstall the android studio but keep it in mind when you are uninstalling it only removes the setting, not the whole. The android studio asks you about this. So in this way within a few minutes you will be back to android studio and your AVD are also there.