Re: [error-prone-discuss] Problem of `Error Prone` integration

74 views
Skip to first unread message

Chris Povirk

unread,
May 13, 2021, 5:59:51 PM5/13/21
to error-pro...@googlegroups.com
It looks like you or one of your dependencies may have excluded Guava's dependency on error-prone-annotations. Many people recommend this, but it can lead to errors like these.

Viktor Kuzma

unread,
May 13, 2021, 6:17:08 PM5/13/21
to error-prone-discuss
 I don't understand your suggestion. Where I need to know what version `Error Prone` I can use with target `guava -version` (e.g. `25.1-jre`) ? 

Liam Miller-Cushon

unread,
May 13, 2021, 6:27:27 PM5/13/21
to error-pro...@googlegroups.com
> class file for com.google.errorprone.annotations.CompatibleWith not found

This suggests that the maven artifact com.google.errorprone:error_prone_annotations is not on the classpath of the compilation (possibly because something excluded it, as Chris said).

Removing any exclusions of that dep, or adding an explicit dep on it, should fix this error.

--
Googlers: This an external list. Please be careful when posting.
---
You received this message because you are subscribed to the Google Groups "error-prone-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to error-prone-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/error-prone-discuss/eab244b4-37a3-4095-803c-096aedd0de55n%40googlegroups.com.

Viktor Kuzma

unread,
May 19, 2021, 7:06:56 AM5/19/21
to error-prone-discuss
I had found the code that was blocking me. Thanx a lot!
Reply all
Reply to author
Forward
0 new messages