How to solve the error, it is getting reported only in azure pipeline,, ImmutableMap Error

How to solve the error, it is getting reported only in azure pipeline,

023-02-28T20:52:30.5585943Z 2023-02-28 20:52:30.554 INFO c.k.k.c.keyword.builtin.CommentKeyword - >>> chromeDriverPath=C:\Users\VssAdministrator.katalon\8.5.5\Katalon_Studio_Engine_Windows_64-8.5.5\configuration\resources\temp\webdriver\chromedriver.exe
2023-02-28T20:52:30.5586838Z
2023-02-28T20:52:30.5587545Z 2023-02-28 20:52:30.556 INFO c.k.k.c.keyword.builtin.CommentKeyword - >>> chromeDriverPath=C:\Users\VssAdministrator.katalon\8.5.5\Katalon_Studio_Engine_Windows_64-8.5.5\configuration\resources\temp\webdriver\chromedriver.exe
2023-02-28T20:52:30.5588842Z
2023-02-28T20:52:30.5690575Z 2023-02-28 20:52:30.567 ERROR k.k.c.m.CustomKeywordDelegatingMetaClass - ? java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;
2023-02-28T20:52:30.5692266Z
2023-02-28T20:52:30.5713665Z 2023-02-28 20:52:30.568 DEBUG testcase.Case1_PagesValidation - 2: catch (Exception e)
2023-02-28T20:52:30.5786953Z
2023-02-28T20:52:30.5788708Z 2023-02-28 20:52:30.570 DEBUG testcase.Case1_PagesValidation - 1: println(e)
2023-02-28T20:52:30.5789252Z
2023-02-28T20:52:30.5790988Z com.kms.katalon.core.exception.StepErrorException: org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;

Posibbly this test case has problem.

Why?

A quotation from the error message:

java.lang.NoSuchMethodError:
com.google.common.collect.ImmutableMap.of(
  Ljava/lang/Object;
  Ljava/lang/Object;  // K-V pair1
  Ljava/lang/Object;
  Ljava/lang/Object;  // K-V pair2
  Ljava/lang/Object;
  Ljava/lang/Object;  // K-V pair3
  Ljava/lang/Object;
  Ljava/lang/Object;  // K-V pair4
  Ljava/lang/Object;
  Ljava/lang/Object;  // K-V pair5
  Ljava/lang/Object;
  Ljava/lang/Object;  // K-V pair6
  )
  Lcom/google/common/collect/ImmutableMap;

The message tells that your test case passed 6 pairs of K and V to the Immutagble.of() method call. On the other hand the JavaDoc of ImmutableMap tells its API:

https://guava.dev/releases/23.0/api/docs/com/google/common/collect/ImmutableMap.html#of-K-V-K-V-K-V-K-V-K-V-

As the javadoc tells, up to 5 K-V paris are supported, but no more.