Skip to content

Cannot access 'GeneratedMessageLite' since firebase-perf 21.0.5 #7415

@AntonMishanin

Description

@AntonMishanin

[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: Android Studio Narwhal Feature Drop | 2025.1.2 Patch 1
  • Firebase Component: firebase-perf
  • Component version: 22.0.2

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

  1. Clone and run firebase-android-sdk
  2. Add com.google.firebase.perf.v1.TraceMetric.newBuilder() to com.google.firebase.quickstart.perfmon.kotlin.MainActivity
  3. Run "perf.app"
  4. Actual result: Cannot access 'GeneratedMessageLite' which is a supertype of 'TraceMetric'. Check your module classpath for missing or conflicting dependencies.

I can fix it add implementation("com.google.protobuf:protobuf-javalite:3.25.5")

Relevant Code:

import com.google.firebase.perf.v1.TraceMetric

TraceMetric.newBuilder()

Error occurred since com.google.firebase:firebase-perf:21.0.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions