gradle多项目构建,依赖子项目的jar包,一直报错

***************************
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:

    com.yantuly.service.client.around.DeleteAroundRequest.<init>(DeleteAroundRequest.java:19)

The following method did not exist:

    com.yantuly.service.client.around.DeleteAroundRequest.emptyLongList()Lcom/google/protobuf/Internal$LongList;

The method's class, com.yantuly.service.client.around.DeleteAroundRequest, is available from the following locations:

    jar:file:/D:/PMS/gradle-5.4.1/caches/modules-2/files-2.1/com.yantuly/yantuly-service-client/0.4.18/ea34e8358b57cfad5c85a61aa5988b0cd973ffa6/yantuly-service-client-0.4.18.jar!/com/yantuly/service/client/around/DeleteAroundRequest.class

It was loaded from the following location:

    file:/D:/PMS/gradle-5.4.1/caches/modules-2/files-2.1/com.yantuly/yantuly-service-client/0.4.18/ea34e8358b57cfad5c85a61aa5988b0cd973ffa6/yantuly-service-client-0.4.18.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of com.yantuly.service.client.around.DeleteAroundRequest

有没有在项目的pom.xml中把子模块加载呢?

您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~

如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~

ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632

非常感谢您使用有问必答服务,为了后续更快速的帮您解决问题,现诚邀您参与有问必答体验反馈。您的建议将会运用到我们的产品优化中,希望能得到您的支持与协助!

速戳参与调研>>>https://t.csdnimg.cn/Kf0y