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.

Upgrading Firebase dependencies release reveals the following lint error: NoSuchMethodError:IncompatibleIidVersionDetector.beforeCheckEachProject

See original GitHub issue

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow with the firebase tag.
  • For general Firebase discussion, use the firebase-talk google group.
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 3.6.2
  • Firebase Components/Versions:
    • Firebase Services: 3.6.0
    • Firebase Core: 17.3.0
    • Firebase Message: 20.1.4
    • Firebase Crashlytics: 17.0.0-beta03

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

Updated all the firebase dependencies last night only to receive the following lint error:

Execution failed for task ':app:lintDebug'.
> Lint found errors in the project; aborting build.
  
  Fix the issues identified by lint, or add the following to your build script to proceed with errors:
  ...
  android {
      lintOptions {
          abortOnError false
      }
  }
  ...
  
  Errors found:
  
  /Users/amanda.hinchman-dominguez/Documents/repos/47deg/scaladaysandroidkotlin/app: Error: Unexpected failure during lint analysis (this is a bug in lint or one of the libraries it depends on)
  
  Message: 'com.android.builder.model.AndroidProject com.android.tools.lint.detector.api.Project.getGradleProjectModel()'
  
  The crash seems to involve the detector com.google.firebase.installations.lint.IncompatibleIidVersionDetector.
  You can try disabling it with something like this:
      android {
          lintOptions {
              disable "IncompatibleIidVersion"
          }
      }
  
  Stack: NoSuchMethodError:IncompatibleIidVersionDetector.beforeCheckEachProject(IncompatibleIidVersionDetector.kt:56)←LintDriver.checkProject(LintDriver.kt:894)←LintDriver.analyze(LintDriver.kt:422)←LintCliClient.run(LintCliClient.java:238)←LintGradleClient.run(LintGradleClient.java:261)←LintGradleExecution.runLint(LintGradleExecution.java:305)←LintGradleExecution.lintSingleVariant(LintGradleExecution.java:392)←LintGradleExecution.analyze(LintGradleExecution.java:94)

I did some digging of my own - the library jars downloaded in com.google.firebase.installations appears to be missing the package for lint let alone the class itself. Furthermore, there appears to be no such class in documentation or release notes.

However, I did spot two recent commits made in roughly the last 2 weeks involving the existence of com.google.firebase.installations.lint.IncompatibleIidVersionDetector:

Relevant Code:

Insert the following dependencies in an Android project:

dependencies {
    def firebase_version = '17.3.0'

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation "androidx.multidex:multidex:2.0.1"
    implementation 'androidx.core:core-ktx:1.2.0'

    implementation "com.google.firebase:firebase-core:$firebase_version"
    implementation 'com.google.firebase:firebase-messaging:20.1.4'
    implementation "com.google.firebase:firebase-analytics:$firebase_version"
    implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta03'
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
vkryachkocommented, Apr 2, 2020

@crossle We are working on the release right now and hopefully it will be available today. If we face any process related delays I will update this thread. Thanks for your patience

4reactions
davidmotsoncommented, Apr 3, 2020

Should be launched now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase Android SDK Release Notes - Google
Updated dependency of firebase-iid to its latest version (v21.1.0). ... With this release, the BoM no longer contains the following deprecated libraries:
Read more >
android - The library com.google.firebase:firebase-iid is being ...
I solved it by updating firebase messaging to the latest version(at this time). implementation 'com.google.firebase:firebase-messaging:17.0.0'.
Read more >
Release Notes - Play services - Google Developers
For more information, see the Firebase Android SDK Release Notes. ... The latest update to the OSS licenses Gradle plugin includes fixes for...
Read more >
Lint error with firebase-perf [OutdatedLibrary] even if we are ...
Update to version 19.0.10 or higher to get real time performance data. ... by lint, or add the following to your build script...
Read more >
FirebaseUI for Android — UI Bindings for Firebase
dependencies { // FirebaseUI for Firebase Realtime Database implementation ... If you are using an old version of FirebaseUI and upgrading, please see...
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