Hi,
I recent I am working on a task and when I configure the API, I got this- Error: Unable to load class- ‘org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration’
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not open proj generic class cache for build file '/path/to/project/app/build.gradle' (/path/to/gradle/caches/proj-generic/cache.properties).
> Unable to load class 'org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration' due to missing dependency 'org/gradle/internal/impldep/com/google/common/collect/ImmutableList'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
When I reach about this, I came across these articles/resources mulesoft interview questions Gradle Error org.gradle.api.internal.artifacts, and as per them, this error can occur due to class loading issues, possibly from a corrupted Gradle cache or mismatched Gradle version. When I check the status, everything is find even I am removed all the cache and having latest gradle version, then what could be the reason?
Kindly provide solution.
Thanks