{
  "id": "P186",
  "slug": "firebase-android-bom-ktx-libraries-removed-main-modules-package-relocation-unresolved-imports",
  "status": "verified-page-ready",
  "product": "Firebase Android",
  "family": "SDK bundle/module removal",
  "canonical_url": "https://gitdocs.org/fix/firebase-android-bom-ktx-libraries-removed-main-modules-package-relocation-unresolved-imports",
  "query_alias_url": "https://gitdocs.org/q/firebase-android-bom-ktx-libraries-removed-main-modules-package-relocation-unresolved-imports",
  "markdown_url": "https://gitdocs.org/fix/firebase-android-bom-ktx-libraries-removed-main-modules-package-relocation-unresolved-imports.md",
  "json_url": "https://gitdocs.org/api/fixes/firebase-android-bom-ktx-libraries-removed-main-modules-package-relocation-unresolved-imports.json",
  "canonical_query": "Firebase Android BoM KTX libraries removed main modules package relocation unresolved imports",
  "observed_codex_queries": [
    "Firebase Android BoM KTX libraries removed main modules package relocation unresolved imports",
    "site:firebase.google.com/docs/android BoM 34.0.0 KTX libraries removed Firebase Android",
    "Firebase Android KTX modules removed July 2025 BoM 34.0.0",
    "https://firebase.google.com/docs/android/kotlin-migration"
  ],
  "organic_dependency_search_count": 5,
  "affected_versions": "Firebase Android projects using BoM 34.0.0+ with separate `firebase-*-ktx` dependencies.",
  "exact_errors": [
    "Could not find com.google.firebase:firebase-analytics-ktx",
    "Unresolved reference: analytics"
  ],
  "diagnosis": "KTX APIs are now provided by the main Firebase Android modules. The fix is to remove the `-ktx` artifact and keep the BoM-managed main module.",
  "before": "implementation(platform(\"com.google.firebase:firebase-bom:34.0.0\"))\nimplementation(\"com.google.firebase:firebase-analytics-ktx\")",
  "after": "implementation(platform(\"com.google.firebase:firebase-bom:34.0.0\"))\nimplementation(\"com.google.firebase:firebase-analytics\")",
  "verification": "./gradlew :app:dependencies --configuration debugRuntimeClasspath | grep firebase-analytics",
  "unsafe_fixes": [
    "Do not pin an old `firebase-*-ktx` version beside BoM 34; that creates mixed-generation Firebase dependencies."
  ],
  "last_verified_at": "2026-06-25",
  "neutral_validation": {
    "organic_search_observed": true,
    "organic_strict_pass": true,
    "no_web_counterfactual_run": false,
    "no_web_strict_pass": null,
    "search_necessity_under_fixture": null,
    "no_web_oracle_note": "Observed query evidence is separated from necessity proof; no-web and stale-contract counterfactuals should be tracked separately."
  },
  "source_trail": [
    {
      "url": "https://firebase.google.com/support/release-notes/android",
      "label": "Firebase Android SDK release notes / BoM 34"
    },
    {
      "url": "https://firebase.google.com/docs/android/kotlin-migration",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://firebase.google.com/docs/android/kotlin-migration",
      "label": "Authoritative source"
    }
  ],
  "source_github_links": []
}
