Layout inspector not showing compose nodes

4k views Asked by At

Trying to inspect my pure Compose app in the layout inspector shows the screen without any layout node information. No errors in the logs. This happens on both real devices and emulators. I have tried Android Studio Bumblebee (latest patch) and Chipmunk (Beta). Compose version is 1.1.1

Layout inspector

1

There are 1 answers

2
dipdipdip On BEST ANSWER

When only the views are shown, but no Composables, make sure to not exclude .version files from META-INF, since the compose UI tooling utilizes them, e.g. remove/adjust these:

packagingOptions {
    resources {
        excludes += "META-INF/*.version"
    }
}

or

packagingOptions {
    resources {
        excludes += "META-INF/**"
    }
}