***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.apache.curator.framework.listen.ListenerContainer.addListener(ListenerContainer.java:41)
The following method did not exist:
com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor()Lcom/google/common/util/concurrent/ListeningExecutorService;
The method's class, com.google.common.util.concurrent.MoreExecutors, is available from the following locations:
jar:file:/J:/program/myprogram/maven/repository/com/google/guava/guava/28.2-android/guava-28.2-android.jar!/com/google/common/util/concurrent/MoreExecutors.class
It was loaded from the following location:
file:/J:/program/myprogram/maven/repository/com/google/guava/guava/28.2-android/guava-28.2-android.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of com.google.common.util.concurrent.MoreExecutors
Disconnected from the target VM, address: '127.0.0.1:1109', transport: 'socket'
Process finished with exit code 1
解决办法
把 com.google.guava 版本降低到20.0以下就可以了
我引用的版本是
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<elastic-job.version>2.1.5</elastic-job.version>
<curator.version>2.10.0</curator.version>
</properties>
手机扫一扫
移动阅读更方便
你可能感兴趣的文章