尝试将guava从版本19升级到版本20时出现此错误:
Error:java: cannot access com.google.errorprone.annotations.CanIgnoreReturnValue
class file for com.google.errorprone.annotations.CanIgnoreReturnValue not found有什么办法解决这个问题吗?在我的项目中,我没有任何关于errorprone的引用。向errorprone添加依赖项没有任何帮助,如下所示:
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>发布于 2016-11-02 01:35:53
通过手动添加易出错的依赖解决:
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<version>2.0.12</version>
</dependency>https://stackoverflow.com/questions/40364635
复制相似问题