SDK bundle/module removal

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

The separate artifact is removed, but blindly deleting it leaves unresolved imports until the correct main module/API is used.

verified-page-readyFirebase AndroidAndroid/mobile SDKSDK bundle/module removalfirebase_android

Agent Quick Fix

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.

Product: Firebase Android
Affected: Firebase Android projects using BoM 34.0.0+ with separate `firebase-*-ktx` dependencies.
Current-contract area: Clean BoM upgrade exposes main-module KTX package relocation
Likely root cause: The separate artifact is removed, but blindly deleting it leaves unresolved imports until the correct main module/API is used.
Patch:
implementation(platform("com.google.firebase:firebase-bom:34.0.0"))
implementation("com.google.firebase:firebase-analytics")

Validation Status

Codex searched organically in the validation run. No no-web counterfactual is attached to this page yet.

Symptom

The separate artifact is removed, but blindly deleting it leaves unresolved imports until the correct main module/API is used.

Could not find com.google.firebase:firebase-analytics-ktx
Unresolved reference: analytics

Why This Happens

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 And After

Before

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

After

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

Verification

./gradlew :app:dependencies --configuration debugRuntimeClasspath | grep firebase-analytics

Common Wrong Fixes

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

Codex Search Keywords

These are the search terms observed in a neutral Codex validation run for this failure shape.

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

Source Trail