Spurious build warnings on "com.facebook.infer.annotation.Nullsafe$Mode not found"
See original GitHub issueDescription
We updated from Fresco 2.3.0 to 2.4.0 and now we get these warnings in every module that uses Fresco:
com.facebook.infer.annotation.Nullsafe$Mode not found
warning: unknown enum constant Mode.LOCAL
warning: unknown enum constant Mode.STRICT
From gradle app:dependencies, the only thing that uses infer in our project is Fresco:
| | | | +--- com.facebook.fresco:fresco:2.4.0
| | | | | +--- com.facebook.fresco:fbcore:2.4.0
| | | | | +--- com.facebook.fresco:drawee:2.4.0
| | | | | | +--- com.facebook.fresco:fbcore:2.4.0
| | | | | | +--- com.facebook.fresco:imagepipeline:2.4.0
| | | | | | | +--- com.facebook.fresco:imagepipeline-base:2.4.0
| | | | | | | | +--- com.facebook.infer.annotation:infer-annotation:0.18.0
| | | | | | | | | +--- com.google.code.findbugs:jsr305:3.0.1 -> 3.0.2
| | | | | | | | | \--- org.jetbrains.kotlin:kotlin-annotations-jvm:1.3.72 -> 1.4.32
| | | | | | | | +--- com.facebook.soloader:annotation:0.9.0
| | | | | | | | +--- com.parse.bolts:bolts-tasks:1.4.0
| | | | | | | | \--- com.facebook.fresco:fbcore:2.4.0
| | | | | | | +--- com.facebook.soloader:nativeloader:0.9.0
| | | | | | | +--- com.facebook.soloader:annotation:0.9.0
| | | | | | | +--- com.parse.bolts:bolts-tasks:1.4.0
| | | | | | | \--- com.facebook.fresco:fbcore:2.4.0
Reproduction
Update to 2.4.0…build project
Solution
Doesn’t seem harmful but might confuse users…can roll back to Fresco 2.3.0 if you want to avoid these spurious warnings
Additional Information
- Fresco version: 2.4.0
- Platform version: Gradle 6.8.3, AGP 4.1.3
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:22 (1 by maintainers)
Top Results From Across the Web
Missing class com.facebook.infer.annotation.Nullsafe$Mode ...
I have solved this problem by adding the following dependencies. implementation 'com.facebook.infer.annotation:infer-annotation:0.18.0'.
Read more >R8 Warnings - GMS 20.6.0 with Facebook Mediation 6.10.0.0
R8 is showing 2 warnings after updating · gms:play-services-ads:20.6.0 with mediation facebook:6.10.0.0 · Missing class com.facebook.infer.
Read more >infer-annotation : 0.11.2 - Maven Central Repository Search
Annotations for the Infer static analyzer.
Read more >Need help? | Infer - Infer Static Analyzer
The GitHub issues page is a good place to ask questions, find answers, ... will sometimes not work if files have been compiled...
Read more >Facebook Infer: Advanced Static Analysis at Speed and Scale
Dulma and Jules talk about how to improve code quality through static analysis. They describe the Infer static analyzer, an open source tool ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
These warnings still exists in 2.5.0.
These warnings still exists in 2.6.0.