question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spurious build warnings on "com.facebook.infer.annotation.Nullsafe$Mode not found"

See original GitHub issue

Description

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:open
  • Created 2 years ago
  • Reactions:3
  • Comments:22 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
hmmh-michael-schaefercommented, Jul 30, 2021

These warnings still exists in 2.5.0.

9reactions
henrychao24commented, Nov 18, 2021

These warnings still exists in 2.6.0.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found