If we remove google-gson.jar then our existing functionality does not work with gson-2.2.4.jar. and if we remove gson-2.2.4.jar then getting below error
I'm afraid you will not be able to run your application using two different versions of Gson without resorting to some class-rewriting magic. Apache jclouds requires gson-2.2.4 and will not work with a different version (as you have seen).
If you are unable to modify your application to work with 2.2.4, you will need to think about possible solutions such as using the Maven Shade plugin [1] to "relocate" one set of Gson classes to avoid the classpath conflict.
Such kind of approaches are usually tricky, so if there's any way to get your application to use gson-2.2.4, I would suggest investigating that first.
ap [1] http://maven.apache.org/plugins/maven-shade-plugin/index.html
