rest assured – Exceptions: java.lang.NoClassDefFoundError: io/restassured/mapper/factory/GsonObjectMapperFactory

When I run the rest assured java code using testng I am getting below error. Please assist. I believe I need to change the version of Gson file. So, please let me know which version of the Gson need to be appended. [RemoteTestNG] detected TestNG version 7.4.0 FAILED: test java.lang.NoClassDefFoundError: io/restassured/mapper/factory/GsonObjectMapperFactory at io.restassured.config.RestAssuredConfig.<init>(RestAssuredConfig.java:41) at io.restassured.RestAssured.<clinit>(RestAssured.java:420) … Read more