How to solve this error

Recently, I have upgraded the temporal java sdk version to 1.20.0 and I got this error.

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.temporal.serviceclient.WorkflowServiceStubs]: Factory method ‘getWorkflowServiceStubsDev’ threw exception; nested exception is java.util.ServiceConfigurationError: io.grpc.LoadBalancerProvider: io.grpc.xds.WeightedRoundRobinLoadBalancerProvider Unable to get public no-arg constructor.

My config is
public WorkflowServiceStubs getWorkflowServiceStubsDev() {
return WorkflowServiceStubs.newLocalServiceStubs();

This looks like an incompatible gRPC library version. Make sure that you include the version that Temporal SDK was compiled against.