Bug P3
Status Update
Comments
ra...@google.com <ra...@google.com>
be...@google.com <be...@google.com>
le...@google.com <le...@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.
be...@google.com <be...@google.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
le...@google.com <le...@google.com> #4
Just simply add
data_sources: {
config {
name: "track_event"
}
}
to my perfetto trace command still not work. I got the command working by copy some other's command.
It would be nice if I can get a better understanding of why my original command throw error: "pbtxt_to_pb.cc:604 Unexpected char ? (errno: 0, Success)"
be...@google.com <be...@google.com> #5
Jakub wrote those instructions so he is the best one to answer that query.
jg...@google.com <jg...@google.com> #6
Could you provide both: working and not_working config, so we can see the diff?
Description
I am using perfetto command to take a trace followinghttps://developer.android.com/jetpack/compose/tooling/tracing#terminal
I added "track_event" in step 2 and run the command, I got error:
Could you help me with this? Here is my command: