"This feature is not compiled into this build"
[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
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Did try on Narwhal and same error. Unfortunately, the error is not descriptive enough for me to know what is causing it exactly.
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!
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!
Can you share an MCVE with us to get better understanding of the issue?
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!
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.
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
Note that the above restores the ability to debug on the emulator, but still unable to do it on the device.