• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps FAILURE: Build failed with an exception.

Facing the below issue on my system after updating the android studio and all its plugins.

FAILURE: Build failed with an exception.

* What went wrong:
Could not create an instance of type org.gradle.plugin.management.internal.DefaultPluginResolutionStrategy.
> com.google.common.collect.ImmutableList.builderWithExpectedSize(I)Lcom/google/common/collect/ImmutableList$Builder;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


I tried with different solutions as mentioned below, but didn't get any success.
1. Invalidating cache and restart
2. Resetting Android Studio settings to default.
3. Uninstalling everything and re-installing.
4. Reverting to the previous version of android studio.

Please help me if anyone knows the solution.
 
  • Like
Reactions: joedavisfisherman67
Facing the below issue on my system after updating the android studio and all its plugins.

FAILURE: Build failed with an exception.

* What went wrong:
Could not create an instance of type org.gradle.plugin.management.internal.DefaultPluginResolutionStrategy.
> com.google.common.collect.ImmutableList.builderWithExpectedSize(I)Lcom/google/common/collect/ImmutableList$Builder;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

I tried with different solutions as mentioned below, but didn't get any success.
1. Invalidating cache and restart
2. Resetting Android Studio settings to default.
3. Uninstalling everything and re-installing.
4. Reverting to the previous version of android studio.

Please help me if anyone knows the solution.
 
Upvote 0
Facing the below issue on my system after updating the android studio and all its plugins.

FAILURE: Build failed with an exception.

* What went wrong:
Could not create an instance of type org.gradle.plugin.management.internal.DefaultPluginResolutionStrategy.
> com.google.common.collect.ImmutableList.builderWithExpectedSize(I)Lcom/google/common/collect/ImmutableList$Builder;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

I tried with different solutions as mentioned below, but didn't get any success.
1. Invalidating cache and restart
2. Resetting Android Studio settings to default.
3. Uninstalling everything and re-installing.
4. Reverting to the previous version of android studio.

Please help me if anyone knows the solution.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones