firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

"This feature is not compiled into this build"

Open ber4444 opened this issue 7 months ago • 7 comments

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

Yes

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 2024.3.2
  • Firebase Component: Analytics
  • Component version: firebase bom 33.13.0

[REQUIRED] Step 3: Describe the problem

Getting java.lang.IllegalStateException: This feature is not compiled into this build when debugging my app

Stacktrace indicates m7.kl.a(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (260400-0):12)

Steps to reproduce:

Run in debug mode

ber4444 avatar May 20 '25 13:05 ber4444

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar May 20 '25 13:05 google-oss-bot

Did try on Narwhal and same error. Unfortunately, the error is not descriptive enough for me to know what is causing it exactly.

ber4444 avatar May 20 '25 13:05 ber4444

Hi @ber4444, thank you for reaching out. Could you share an MCVE to help us investigate the issue? If you're unable to provide one, can you try our quickstart app aand see if you can reproduce the issue? Thanks!

lehcar09 avatar May 20 '25 16:05 lehcar09

Hey @ber4444. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar May 27 '25 01:05 google-oss-bot

Can you share an MCVE with us to get better understanding of the issue?

lehcar09 avatar Jun 03 '25 11:06 lehcar09

Hey @ber4444. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Jun 10 '25 01:06 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@ber4444 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Jun 17 '25 01:06 google-oss-bot

I was still struggling with this when attempting to debug on a device. When attempting to debug on the emulator, the error changed to

java.lang.IllegalStateException: Given application context does not implement GeneratedComponentManager: class csgt

and the backtrace showed references to class com.google.android.gms.providerinstaller.ProviderInstallerImpl

So I could fix it by ripping the code out that was copy-pasted from https://developer.android.com/privacy-and-security/security-gms-provider in particular ProviderInstaller.installIfNeededAsync(this, this) was problematic

ber4444 avatar Jun 25 '25 22:06 ber4444

Note that the above restores the ability to debug on the emulator, but still unable to do it on the device.

ber4444 avatar Jun 25 '25 22:06 ber4444