Bug P3
Status Update
Comments
ra...@google.com <ra...@google.com>
s....@gmail.com <s....@gmail.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.
se...@gmail.com <se...@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
jg...@google.com <jg...@google.com> #4
Re
Re
Description
Component used: androidx.compose.runtime:runtime-tracing
Version used: 1.0.0-beta01
Devices/Android versions reproduced on: Samsung Galaxy S9
Following the documentation athttps://developer.android.com/jetpack/compose/tooling/tracing
I'm trying to enable detailed tracing of Compose UI recompositions, unfortunately all I can see in the profiler is "Compose:recompose" without any additional details.
I'm attaching a slightly modified Android Studio template project with Compose 1.6.0-rc01 (same version I use in my real project).
Steps:
Expected:https://developer.android.com/static/images/jetpack/compose/performance/tracing-4.png
the Greeting composable show up in the profile. Look what the documentation promises:
Result:
no details about actual composables being recomposed, just "Compose:recompose", same as if I don't add "runtime-tracing" to my project.
Either I'missing something in the setup or the "runtime-tracing" library doesn't do anything.