I'm working on an Android project that is using Jetpack Compose for the UI side, and it would be useful to be able to check the recomposition details in the Android Studio Layout Inspector, but the "Show Recomposition Counts" option doesn't appear if the app is running and selected. If the "Filter System-Defined" isn't set, it shows the system views, and checking that options shows the empty tree.
If one of the Compose Code-Labs apps is running, the option does appear, eg:
So that proves the issue isn't an Emulator or an Android Studio version problem. I'm running Android Studio Electric Eel, 2022.1.1 Patch 1, and all apps are using the same emulator (API 33)
I've checked our project that shows the problem is using the same set of Compose libraries as the Code-Labs example does (which works), and in both instances I'm running a debug build.
Looking on StackOverflow I've seen mention of the issue elsewhere too, eg: Jetpack Compose: The layout inspector is not showing the menu for recomposition counts (but we're using the same Compose, Android Studio versions) so I'm running out of ideas. Any other suggestions for what might cause this?