NoSuchMethodError faced in simple test

166 views
Skip to first unread message

Rakesh Sarangi

unread,
Jul 29, 2015, 3:35:19 AM7/29/15
to json-schema-validator
Hi,

I added this library as a Maven dependency and tried to run a test. I faced this error

Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

I looked up and read that this might be due to different versions of library used when compiling and running. But I added 2.2.6 only as a Maven dependency. And I am not sure how to check whether any other version of the library was added too. I am using Eclipse.Any help would be appreciated.
Reply all
Reply to author
Forward
0 new messages