Compilation error when upgrading from 19 to 20

Trying to upgrade guava from version 19 to 20 and get this error:

Error:java: cannot access com.google.errorprone.annotations.CanIgnoreReturnValue
  class file for com.google.errorprone.annotations.CanIgnoreReturnValue not found

Any ideas how to fix this? I have no links to errorprone in my project. Adding a dependency to errorprone, as shown below, does not help:

        <groupId>com.google.errorprone</groupId>
        <artifactId>error_prone_annotations</artifactId>
+4
source share
1 answer

Solved by adding errprone error manually:

    <dependency>
        <groupId>com.google.errorprone</groupId>
        <artifactId>error_prone_annotations</artifactId>
        <version>2.0.12</version>
    </dependency>
+5
source

Source: https://habr.com/ru/post/1659541/


All Articles