[Solved] Springboot Project Start Error: An attempt was made to call the method com.google.common.collect.Multimaps.asMap

An attempt was made to call the method com.google.common.collect.Multimaps.asMap(Lcom/google/common/collect/ListMultimap;)Ljava/util/Map; but it does not exist. Its class, com.google.common.collect.Multimaps, is available from the following locations:
jar:file:/D:/tools/maven/data/org/apache/hive/hive-exec/1.1.0-cdh5.7.0/hive-exec-1.1.0-cdh5.7.0.jar!/com/google/common/collect/Multimaps.class
jar:file:/D:/tools/maven/data/com/google/guava/guava/14.0.1/guava-14.0.1.jar!/com/google/common/collect/Multimaps.class
It was loaded from the following location:
file:/D:/tools/maven/data/org/apache/hive/hive-exec/1.1.0-cdh5.7.0/hive-exec-1.1.0-cdh5.7.0.jar

Action:
Correct the classpath of your application so that it contains a single, compatible version of com.google.common.collect.Multimaps

 

Solution
(istMultimap;)Ljava/util/Map; but it does not exist. Its class, com.google.common.collect.Multimaps,) This sentence already explains that the method can not be found, hive-exec inside the use of Multimaps method is not available under guava package, finally found that it is the version of the problem, add the following problem solved


Read More: