# Firebase Android BoM KTX libraries removed main modules package relocation unresolved imports

Status: verified-page-ready
Product: Firebase Android
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/firebase-android-bom-ktx-libraries-removed-main-modules-package-relocation-unresolved-imports
Machine JSON: https://gitdocs.org/api/fixes/firebase-android-bom-ktx-libraries-removed-main-modules-package-relocation-unresolved-imports.json

## Exact Symptom

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

## Fix

```
implementation(platform("com.google.firebase:firebase-bom:34.0.0"))
implementation("com.google.firebase:firebase-analytics")
```

## Avoid

- Do not pin an old `firebase-*-ktx` version beside BoM 34; that creates mixed-generation Firebase dependencies.

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

## Sources

- Firebase Android SDK release notes / BoM 34: https://firebase.google.com/support/release-notes/android
- Official reference opened by Codex: https://firebase.google.com/docs/android/kotlin-migration
- Authoritative source: https://firebase.google.com/docs/android/kotlin-migration
