从Guava 19升级到20时出现java编译错误
正在尝试将guava从版本19升级到版本20,但出现以下错误:
Error:java: cannot access com.google.errorprone.annotations.CanIgnoreReturnValue
class file for com.google.errorprone.annotations.CanIgnoreReturnValue not found
有没有办法解决这个问题?在我的项目中,我没有任何关于易出错的参考资料。
向errorprone
添加依赖项(如下所示)没有帮助:
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
# 1 楼答案
通过手动添加容易出错的依赖项解决: