Bug P3
Status Update
Comments
cc...@google.com <cc...@google.com> #2
error instantiating androidx.tracing.perfetto.StartupTracingConfigStoreIsEnabledGate
This looks like a minification issue
- Are you using either minification of your app, or in your instrumented test? If so, can you try adding a keep rule for that class?
- Is this class present in your apk's dex files, if you open the apk in studio? (if this is an instrumented test, check both your app and test)
- Are you depending on
androidx.compose.runtime:runtime-tracing
viaandroidTestImplementation
orimplementation
, and from what type of module? - What version of AGP are you using? I would expect the
would mean the library doesn't need an explicit keep rule, but it could bemanifest entry for this class depending on your AGP version / how the dependency is declared (fixed in AGP 8.6 canary 5, but a keep rule should work around it)b/328649293
Edit: disregard, I doubt Robolectric is using any of the minification codepaths.
ak...@gmail.com <ak...@gmail.com> #3
- Let me check
- Using
implementation
and it's added at the project level so all modules using compose are getting it - I'm on
8.1.1
Description
Component used:
androidx.compose.runtime:runtime-tracing
Version used: beta01
Compose Version:
I'm trying to add composition tracing library and I tried
beta01
which builds fine and the tracing itself works. But it causes my one of my instrumented test class to fail with the following stacktrace. That said usingalpha01
doesn't give this error while the tracing itself works.Test
Stacktrace