Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Execution failed for task ':backend:endpointsClientLibs' when increasing com.android.tools.build:gradle version #110

Open
waterdrake opened this issue Sep 13, 2022 · 2 comments

Comments

@waterdrake
Copy link

I get this error when I try to upgrade my project level gradle from 'com.android.tools.build:gradle:7.0.4' to 'com.android.tools.build:gradle:7.2.2' (Or anything higher than 7.0.4 in general):

Unable to find method ''java.lang.reflect.Type com.fasterxml.jackson.databind.introspect.AnnotatedField.getGenericType()''
'java.lang.reflect.Type com.fasterxml.jackson.databind.introspect.AnnotatedField.getGenericType()'

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.

The error in the logs says:

Execution failed for task ':backend:endpointsClientLibs'.
> 'java.lang.reflect.Type com.fasterxml.jackson.databind.introspect.AnnotatedField.getGenericType()'

Looks like it is related to the cloud endpoints module I have.

Is there a fix for this so I can have a higher gradle version for my project?

@zhumin8
Copy link

zhumin8 commented Sep 14, 2022

The issue sounds to be a mismatch between the jackson library being called the the one brought in.
The 2 issues might help with troubleshooting: 45 or 52

@waterdrake
Copy link
Author

@zhumin8 The links you posted are a bit old and are from Endpoints V1. I am on Endpoints Version 2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants