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.

`IidCompatibilityCheckFailure` lint check fails with a null pointer exception (NPE)...

See original GitHub issue

IidCompatibilityCheckFailure lint check fails with a null pointer exception (NPE)…

Using bom 25.4.1 and Iid 20.2.0

The check failed to run as it encountered unknown failure. This is most likely caused by a new version of Android Gradle Plugin that this check does not support. Please make sure your build does not depend on firebase-iid version earlier than 20.1.1 as it will cause issues.

[REQUIRED] Step 2: Describe your environment

  • Android gradle plugin 4.0.0
  • Firebase Component: bom 25.4.1 and Iid 20.2.0

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

Run lintRelease

Seems to be related to dagger 2.28, or Google places SDK 2.3.0 or androidtimesquare lib 1.7.10

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:9
  • Comments:30 (10 by maintainers)

github_iconTop GitHub Comments

14reactions
ankitaj224commented, Oct 22, 2020

Hi Everyone.

Sorry for the delayed response. Yes, its a broken lint check caused by the reflection call in Firebase-Installations library resulting in this issue. I was figuring out if its safe to remove the lint check from the firebase-installations library.

We have decided on removing the lint check from Firebase Installations library by mid November. Since, this lint check failure is a weak warning, anyone getting this error please feel free to ignore it if your app depends on firebase-iid version i.e greater than 20.1.1

I will keep this issue open till we rollout the lint removal.

Thanks, Ankita

7reactions
petedoylecommented, Jul 15, 2020

I might be seeing the same thing with a more descriptive error with Gradle 6.5.1 and Android Gradle Plugin 4.2.0-alpha04:

Check failed with exception: java.lang.NoSuchMethodException: com.android.tools.lint.detector.api.LintModelModuleProject.getGradleProjectModel()
Read more comments on GitHub >

github_iconTop Results From Across the Web

Proper way to handle Android Studio's NullPointerException ...
If you want to get ride of it, throw an NullPointerException . Lint will ignore it in this case. public void myFunc() throws...
Read more >
Firebase Android SDK Release Notes - Google
Fixed an IidCompatibilityCheckFailure lint check failure with a null pointer exception (NPE) that occurred on Gradle v6.1 and above. (GitHub Issue #1701) ...
Read more >
Firebase Nullpointer Exception - ADocLib
Fixed an IidCompatibilityCheckFailure lint check failure with a null pointer exception NPE that occurred on. Android firebase firebaserealtimedatabase ...
Read more >
Handling Java NullPointerException and Best Practices
Java NullPointerException is an unchecked exception and extends RuntimeException. Learn why NullPointerException occur and how to handle it ...
Read more >
Why does my code throw a null pointer exception? - Evil Tester
I just made a Semantic coding error. This won't be caught by a compiler, but it will cause my @Test to fail with...
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